OSDN Git Service

gcc/cp/
authorsimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2008 05:21:30 +0000 (05:21 +0000)
committersimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jun 2008 05:21:30 +0000 (05:21 +0000)
commitf922e029b1552335d3bc772bbb339dcc1c0929d5
tree49becebf3f85a8957f6c86b09667c1331cf064cb
parenta719c332937af59278a080f7cd620b9d06849b5c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136778 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/bitfield3.C [new file with mode: 0644]