re PR c++/35315 (ICE with attribute transparent_union)
PR c++/35315
* attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
alone if it's the naming decl for the type's main variant.
* cp/decl.c (grokdeclarator): Allow a typedef of an unnamed struct
to name the struct for linkage purposes even if it has attributes.
(start_decl): In that case, set ATTR_FLAG_TYPE_IN_PLACE.
From-SVN: r132681
Showing
gcc/testsuite/g++.dg/ext/attrib32.C
0 → 100644
Please
register
or
sign in
to comment