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.
2000-07-05 Jason Merrill <jason@redhat.com>
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: