Commit 14b60730 by Jason Merrill Committed by Richard Kenner

(tsubst, PARM_TYPE): Propagate DECL_ARTIFICIAL.

From-SVN: r10073
parent b7707b23
...@@ -1460,6 +1460,7 @@ tsubst (t, args, nargs, in_decl) ...@@ -1460,6 +1460,7 @@ tsubst (t, args, nargs, in_decl)
tree r; tree r;
r = build_decl (PARM_DECL, DECL_NAME (t), type); r = build_decl (PARM_DECL, DECL_NAME (t), type);
DECL_INITIAL (r) = TREE_TYPE (r); DECL_INITIAL (r) = TREE_TYPE (r);
DECL_ARTIFICIAL (r) = DECL_ARTIFICIAL (t);
if (TREE_CHAIN (t)) if (TREE_CHAIN (t))
TREE_CHAIN (r) = tsubst (TREE_CHAIN (t), args, nargs, TREE_CHAIN (t)); TREE_CHAIN (r) = tsubst (TREE_CHAIN (t), args, nargs, TREE_CHAIN (t));
return r; return r;
......
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