attribs.c
12.2 KB
-
re PR c++/35315 (ICE with attribute transparent_union) · 317c435f
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
Jason Merrill committed