Commit a5f1c5f8 by Nathan Sidwell Committed by Nathan Sidwell

* pt.c (tsubst): Don't layout type, if it's error_mark.

From-SVN: r34888
parent c2e276fe
2000-07-06 Nathan Sidwell <nathan@codesourcery.com> 2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (tsubst): Don't layout type, if it's error_mark.
2000-07-06 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (instantiate_pending_templates): Reset template level. * pt.c (instantiate_pending_templates): Reset template level.
2000-07-05 Jason Merrill <jason@redhat.com> 2000-07-05 Jason Merrill <jason@redhat.com>
......
...@@ -6515,8 +6515,10 @@ tsubst (t, args, complain, in_decl) ...@@ -6515,8 +6515,10 @@ tsubst (t, args, complain, in_decl)
r = build_reference_type (type); r = build_reference_type (type);
r = cp_build_qualified_type_real (r, TYPE_QUALS (t), complain); r = cp_build_qualified_type_real (r, TYPE_QUALS (t), complain);
/* Will this ever be needed for TYPE_..._TO values? */ if (r != error_mark_node)
layout_type (r); /* Will this ever be needed for TYPE_..._TO values? */
layout_type (r);
return r; return r;
} }
case OFFSET_TYPE: case OFFSET_TYPE:
......
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