diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-20 18:50:00 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-11-20 18:50:00 +0000 |
commit | a9aa2c3ae2aa0ccb98a04cab88c52ac76107d74c (patch) | |
tree | cde7d609f5f7f1969e503442d13c065ed52c7dd6 /gcc/objc | |
parent | c1775967e3898cba767bd4452383a04c18c86623 (diff) | |
download | gcc-a9aa2c3ae2aa0ccb98a04cab88c52ac76107d74c.zip gcc-a9aa2c3ae2aa0ccb98a04cab88c52ac76107d74c.tar.gz gcc-a9aa2c3ae2aa0ccb98a04cab88c52ac76107d74c.tar.bz2 |
re PR c++/16189 (obfuscated error message for missing semicolon after declaration in C++)
gcc/c-family/
PR c++/16189
PR c++/36888
PR c++/45331
* c-common.h (keyword_begins_type_specifier): Declare.
(keyword_is_storage_class_specifier): Declare.
(keyword_is_type_qualifier): Declare.
* c-common.c (keyword_begins_type_specifier): New function.
(keyword_is_storage_class_specifier): New function.
(keyword_is_type_qualifier): Declare.
gcc/cp/
PR c++/16189
PR c++/36888
PR c++/45331
* parser.c (cp_lexer_set_token_position): New function.
(cp_lexer_previous_token_position): New function.
(cp_lexer_previous_token): Call it.
(cp_parser_class_specifier): Try to gracefully handle a missing
semicolon.
gcc/testsuite/
PR c++/16189
PR c++/36888
PR c++/45331
* g++.dg/parse/semicolon3.C: New test.
* g++.dg/debug/pr22514.C: Adjust.
* g++.dg/init/error1.C: Adjust.
* g++.dg/other/bitfield3.C: Adjust.
* g++.dg/other/semicolon.C: Adjust.
* g++.dg/parse/error14.C: Adjust.
* g++.dg/parse/error5.C: Adjust.
* g++.dg/parse/parameter-declaration-1.C: Adjust.
* g++.dg/template/pr23510.C: Adjust.
* g++.dg/template/pr39425.C: Adjust.
* g++.old-deja/g++.robertl/eb125.C: Adjust.
From-SVN: r166977
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions