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

From-SVN: r34888
This commit is contained in:
Nathan Sidwell 2000-07-06 15:34:09 +00:00 committed by Nathan Sidwell
parent c2e276fe18
commit a5f1c5f89b
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
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.

View file

@ -6515,8 +6515,10 @@ tsubst (t, args, complain, in_decl)
r = build_reference_type (type);
r = cp_build_qualified_type_real (r, TYPE_QUALS (t), complain);
/* Will this ever be needed for TYPE_..._TO values? */
layout_type (r);
if (r != error_mark_node)
/* Will this ever be needed for TYPE_..._TO values? */
layout_type (r);
return r;
}
case OFFSET_TYPE: