https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100185
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think the error is right and desirable. Types with non-trivial ctors or dtors need to be passed by invisible reference, so can't be passed the same as the first union member.