Commit 018795f4 by Jason Merrill Committed by Jason Merrill

* lambda.c (add_capture): Don't add DECL_LANG_SPECIFIC.

From-SVN: r202603
parent 5ef7093d
2013-09-15 Jason Merrill <jason@redhat.com>
* lambda.c (add_capture): Don't add DECL_LANG_SPECIFIC.
2013-09-13 Jason Merrill <jason@redhat.com> 2013-09-13 Jason Merrill <jason@redhat.com>
PR c++/58273 PR c++/58273
......
...@@ -499,7 +499,7 @@ add_capture (tree lambda, tree id, tree initializer, bool by_reference_p, ...@@ -499,7 +499,7 @@ add_capture (tree lambda, tree id, tree initializer, bool by_reference_p,
} }
/* Make member variable. */ /* Make member variable. */
member = build_lang_decl (FIELD_DECL, name, type); member = build_decl (input_location, FIELD_DECL, name, type);
DECL_VLA_CAPTURE_P (member) = vla; DECL_VLA_CAPTURE_P (member) = vla;
if (!explicit_init_p) if (!explicit_init_p)
......
...@@ -10500,7 +10500,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) ...@@ -10500,7 +10500,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
} }
} }
/* Loop through all of the parameter's we'll build. When T is /* Loop through all of the parameters we'll build. When T is
a function parameter pack, LEN is the number of expanded a function parameter pack, LEN is the number of expanded
types in EXPANDED_TYPES; otherwise, LEN is 1. */ types in EXPANDED_TYPES; otherwise, LEN is 1. */
r = NULL_TREE; r = NULL_TREE;
......
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