This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r132681 - in /trunk/gcc: ChangeLog attribs.c cp...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 26 Feb 2008 18:09:02 -0000
- Subject: r132681 - in /trunk/gcc: ChangeLog attribs.c cp...
Author: jason
Date: Tue Feb 26 18:09:02 2008
New Revision: 132681
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132681
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/ext/attrib32.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/attribs.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c