fix thinko in last change
authorNathan Sidwell <nathan@gcc.gnu.org>
Fri, 17 Nov 2000 12:36:26 +0000 (12:36 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 17 Nov 2000 12:36:26 +0000 (12:36 +0000)
From-SVN: r37520

gcc/cp/pt.c

index c281636286f51df78785b97faf6689102c0002c1..3327110f949bd44f0897ae58e73017a62d756d0d 100644 (file)
@@ -7152,7 +7152,7 @@ tsubst_expr (t, args, complain, in_decl)
              {
                 if (TREE_CODE (decl) != TYPE_DECL)
                   /* Make sure the type is instantiated now. */
-                  complete_type (type);
+                  complete_type (TREE_TYPE (decl));
                if (init)
                  DECL_INITIAL (decl) = error_mark_node;
                /* By marking the declaration as instantiated, we avoid