From: Nathan Sidwell Date: Fri, 17 Nov 2000 12:36:26 +0000 (+0000) Subject: fix thinko in last change X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b25cab97621c36452d09590dd3c422c83b4e19f;p=gcc.git fix thinko in last change From-SVN: r37520 --- diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index c281636286f..3327110f949 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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