PR c++/35315
commit3ef0a05e848ce72b6d5224893e94ed790980c463
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 18:09:02 +0000 (26 18:09 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 18:09:02 +0000 (26 18:09 +0000)
tree0a295d469e667b407d72e2be5dc3b6409999416f
parentc7e846b42c69d950c4e5a6de2503e949bb8bcbda
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132681 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/attribs.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/ext/attrib32.C [new file with mode: 0644]