(check_explicit_specialization): Don't mess with a returned

error_mark_node.

From-SVN: r19949
This commit is contained in:
Jason Merrill 1998-05-22 04:18:51 +00:00 committed by Jason Merrill
parent d7fe837368
commit 82a7448c53
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
(tsubst_friend_function): Set lineno and input_filename so
error messages will be useful.
(instantiate_template): Just return an error_mark_node.
(check_explicit_specialization): Don't mess with a returned
error_mark_node.
* pt.c (print_template_context): Add new argument.
(maybe_print_template_context): New fn.

View File

@ -1133,7 +1133,7 @@ check_explicit_specialization (declarator, decl, template_count, flags)
member_specialization,
1);
if (tmpl)
if (tmpl && tmpl != error_mark_node)
{
if (explicit_instantiation)
{