re PR c++/45332 (Generate clear diagnostics when a terminating semicolon is…
re PR c++/45332 (Generate clear diagnostics when a terminating semicolon is missing from a class member declaration.) gcc/cp/ PR c++/45332 * parser.c (cp_lexer_previous_token): New function. (cp_parser_member_declaration): Use previous token for error messages. Assume semicolon presence rather than grovelling for the next one. gcc/testsuite/ PR c++/45332 * g++.dg/parse/semicolon2.C: New testcase. * g++.dg/ext/asmspec1.C: Adjust. * g++.dg/init/new13.C: Adjust. * g++.dg/parse/ctor5.C: Adjust. From-SVN: r166406
Showing
gcc/testsuite/g++.dg/parse/semicolon2.C
0 → 100644
Please
register
or
sign in
to comment