* pt.c (tsubst): Don't layout type, if it's error_mark.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 6 Jul 2000 15:34:09 +0000 (15:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 6 Jul 2000 15:34:09 +0000 (15:34 +0000)
From-SVN: r34888

gcc/cp/ChangeLog
gcc/cp/pt.c

index 6386d66..bce0fea 100644 (file)
@@ -1,5 +1,9 @@
 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>
index 9f88761..cef1512 100644 (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: