mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 12:20:44 +08:00
(check_explicit_specialization): Don't mess with a returned
error_mark_node. From-SVN: r19949
This commit is contained in:
parent
d7fe837368
commit
82a7448c53
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user