* pt.c (tsubst): Don't layout type, if it's error_mark.
From-SVN: r34888
This commit is contained in:
parent
c2e276fe18
commit
a5f1c5f89b
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue