parser.c (cp_parser_member_declaration): Parse attributes before colon of a bitfield...
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Sep 2017 07:49:15 +0000 (09:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Sep 2017 07:49:15 +0000 (09:49 +0200)
commit27746ca994d4be2819fd4066217b1f6394cd4646
tree40968ed42dfe1d67b0df42c1ad2ffb77fa8ddcd2
parent2a38995899548c685e8bd794f79c5aad80fc6ef0
parser.c (cp_parser_member_declaration): Parse attributes before colon of a bitfield in addition to after colon.

cp/
* parser.c (cp_parser_member_declaration): Parse attributes before
colon of a bitfield in addition to after colon.
testsuite/
* g++.dg/ext/bitfield7.C: New test.
* g++.dg/ext/bitfield8.C: New test.
* g++.dg/ext/bitfield9.C: New test.

From-SVN: r253281
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/bitfield7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/bitfield8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/bitfield9.C [new file with mode: 0644]