Commit 8b25cab9 by Nathan Sidwell

fix thinko in last change

From-SVN: r37520
parent 61ed06c3
...@@ -7152,7 +7152,7 @@ tsubst_expr (t, args, complain, in_decl) ...@@ -7152,7 +7152,7 @@ tsubst_expr (t, args, complain, in_decl)
{ {
if (TREE_CODE (decl) != TYPE_DECL) if (TREE_CODE (decl) != TYPE_DECL)
/* Make sure the type is instantiated now. */ /* Make sure the type is instantiated now. */
complete_type (type); complete_type (TREE_TYPE (decl));
if (init) if (init)
DECL_INITIAL (decl) = error_mark_node; DECL_INITIAL (decl) = error_mark_node;
/* By marking the declaration as instantiated, we avoid /* By marking the declaration as instantiated, we avoid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment