Commit 82a7448c by Jason Merrill Committed by Jason Merrill

(check_explicit_specialization): Don't mess with a returned

	error_mark_node.

From-SVN: r19949
parent d7fe8373
......@@ -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.
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment