re PR c++/35315 (ICE with attribute transparent_union)
authorJason Merrill <jason@redhat.com>
Tue, 26 Feb 2008 18:09:02 +0000 (13:09 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 26 Feb 2008 18:09:02 +0000 (13:09 -0500)
commit317c435f413d27d35d8abcfb7ee40dc4f3167f53
tree0a295d469e667b407d72e2be5dc3b6409999416f
parentf82c41ea91a0cf691c9a59ca9219e63933c0d9fb
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
gcc/ChangeLog
gcc/attribs.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/ext/attrib32.C [new file with mode: 0644]