PR c++/36625
commit33199a814ed70207b73cf04b05d5a6a09d7ac184
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 20:17:34 +0000 (14 20:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 20:17:34 +0000 (14 20:17 +0000)
tree15fb63d52eb5842deac30924073c0b3cdfc5783f
parent2100808ebd57adc5f1b45afb450a3bd3c2c6723a
PR c++/36625
* c-common.c (attribute_takes_identifier_p): New fn.
* c-common.h: Declare it.
cp/
* parser.c (cp_parser_parenthesized_expression_list): Change
is_attribute_list parm to int to indicate whether or not to
handle initial identifier specially.
(cp_parser_attribute_list): Use attribute_takes_identifier_p.

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