]> gcc.gnu.org Git - gcc.git/commit
re PR c++/9298 ([new parser] ICE with function-pointer-type template args)
authorMark Mitchell <mark@codesourcery.com>
Wed, 22 Jan 2003 22:24:30 +0000 (22:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Jan 2003 22:24:30 +0000 (22:24 +0000)
commite08607323876b31915e5c5d24115f1937d6ee61f
treea89731eddd2b91fbf4754ea78cbc882a4dbe84fb
parentb4ec7fc7f0de5ef2f80066f87b12a168a5625c5a
re PR c++/9298 ([new parser] ICE with function-pointer-type template args)

PR c++/9298
* parser.c (cp_parser_consume_semicolon_at_end_of_statement): New
function.
(cp_parser_expression_statement): Use it.
(cp_parser_explicit_instantiation): Likewise.
* pt.c (do_decl_instantiation): Improve error handling logic.

PR c++/9298
* g++.dg/parse/template1.C: New test.

From-SVN: r61618
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template1.C [new file with mode: 0644]
This page took 0.057367 seconds and 5 git commands to generate.