------- Comment #2 from simartin at gcc dot gnu dot org 2008-06-14 05:22 ------- Subject: Bug 35320
Author: simartin Date: Sat Jun 14 05:21:30 2008 New Revision: 136778 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136778 Log: gcc/cp/ 2008-06-14 Simon Martin <[EMAIL PROTECTED]> PR c++/35320 * decl2.c (grokbitfield): Receive the list of attributes, pass it to grokdeclarator and apply it to the created declaration. * cp-tree.h (grokbitfield): Update prototype. * parser.c (cp_parser_member_declaration): Don't apply the attributes since they are now applied in grokbitfield. Adjusted the call to grokbitfield. (cp_parser_objc_class_ivars): Likewise. gcc/testsuite/ 2008-06-14 Simon Martin <[EMAIL PROTECTED]> PR c++/35320 * g++.dg/parse/bitfield3.C: New test. Added: trunk/gcc/testsuite/g++.dg/parse/bitfield3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl2.c trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35320