https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124991
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I guess one question is if this (splicing an anonymous union member) is really
supposed to be valid, normally one can't refer to that in C++.
That said, one can certainly reflect the anonymous union type (another question
is what should happen when one attempts to create say a new variable with that
type,
typename [: parent_of (^^X::b) :] a { .c = 6 };
and whether that acts in that case as a normal unnamed union or as anonymous
union).
The reason for the ICE is that for anonymous union/anonymous structure types we
reuse
CLASSTYPE_TYPEINFO_VAR tree for something else, namely ANON_AGGR_TYPE_FIELD.