]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 17 Sep 2005 21:57:26 +0000 (21:57 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 17 Sep 2005 21:57:26 +0000 (21:57 +0000)
commit63852f2d3db53b9e70516655dfcc88cf2d175f23
tree6c0bbe6907c6581be5c6d024e3cbb12ee1095964
parent7aef0b791cc9e747ebb31f7fa9f7dd9573990ef0
Backport:

2004-11-27  Mark Mitchell  <mark@codesourcery.com>
PR c++/18368
* parser.c (cp_parser_check_for_definition_in_return_type): Take
the defined type as a parameter, and inform the user about the
possibility of a missing semicolon.
(cp_parser_explicit_instantiation): Adjust call to
cp_parser_check_for_definition_in_return_type.
(cp_parser_init_declarator): Likewise.
(cp_parser_member_declaration): Likewise.

PR c++/18368
* g++.dg/other/semicolon.C: New test.

From-SVN: r104377
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/semicolon.C [new file with mode: 0644]