OSDN Git Service

PR c++/10603
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 16:58:14 +0000 (16:58 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2003 16:58:14 +0000 (16:58 +0000)
commit78662158c893d5a475c117a223847c1dcf056c74
treeab32363f39e685469055a01af67df1879b9c1fc8
parent37acc20282358a89df5ab578918edd5b4cf08a67
PR c++/10603
PR c++/12827
* parser.c (cp_parser_error): Help c_parse_error print good
messages if the next token is a keyword.
(cp_parser_parameter_declaration_list): When resynchronizing after
a bad parameter declaration, stop if a comma is found.
(cp_parser_parameter_declaration): Avoid backtracking.

PR c++/10603
* g++.dg/parse/error6.C: New test.

PR c++/12827
* g++.dg/parse/error7.C: New test.

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