OSDN Git Service

PR c++/20905
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2005 21:13:57 +0000 (21:13 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Apr 2005 21:13:57 +0000 (21:13 +0000)
commit6f74fe3cdede1d8654a61d41f77bedfac6acd357
treeb7e912e2ceef8e6cf2a6d1ba9186e1ee98ce2282
parent8f3b5fc97cbdef876391d2c894fe1a4ea769fa24
PR c++/20905
* parser.c (cp_parser_type_specifier_seq): Add is_condition
parameter.
(cp_parser_new_type_id): Pass it.
(cp_parser_condition): Likewise.
(cp_parser_conversion_type_id): Likewise.
(cp_parser_type_id): Likewise.
(cp_parser_type_specifier_seq): In a condition, do not allow
invalid type-specifier combinations.
(cp_parser_exception_declaration): Adjust call to
cp_parser_type_specifier_seq.

PR c++/20905
* g++.dg/parse/cond2.C: New test.

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