This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35320] [4.1/4.2/4.3/4.4 regression] ICE with invalid friend declaration
- From: "simartin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2008 05:22:22 -0000
- Subject: [Bug c++/35320] [4.1/4.2/4.3/4.4 regression] ICE with invalid friend declaration
- References: <bug-35320-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <simartin@users.sourceforge.net>
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 <simartin@users.sourceforge.net>
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