re PR c++/18757 (ICE (on invalid) in get_innermost_template_args)
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 1 Feb 2005 05:56:08 +0000 (05:56 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 1 Feb 2005 05:56:08 +0000 (05:56 +0000)
commitc8a7ed431adf3bbadac565ff67c78d0195143f94
tree41959edd402fc21a4a2cf1568e59e9fdc454395b
parent7d793e369d9247bc0f839be7e7516075dea525be
re PR c++/18757 (ICE (on invalid) in get_innermost_template_args)

gcc/cp/ChangeLog:
PR c++/18757
PR c++/19366
PR c++/19499
* parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
Issue an error when creating the template id.
* pt.c (fn_type_unification): Return early if the explicit
template arg list is an error_mark_node.
gcc/testsuite/ChangeLog:
* g++.dg/parse/typename7.C: Adjust error messages.

From-SVN: r94520
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/typename7.C