summaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-15 19:34:27 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-15 19:34:27 +0000
commitdf623cbd1516abe65a7be0b96377ea47c2c00625 (patch)
treea3c24c0041c17c33393ad2ddf813f84a4b288e6a /gcc/cp/lambda.c
parent991e1cc6bd7eeb652f8f1ecf814bb89f88eeb666 (diff)
downloadgcc-df623cbd1516abe65a7be0b96377ea47c2c00625.tar.gz
* lambda.c (add_capture): Don't add DECL_LANG_SPECIFIC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202603 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index a53e692d48b..bf758348816 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -499,7 +499,7 @@ add_capture (tree lambda, tree id, tree initializer, bool by_reference_p,
}
/* 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;
if (!explicit_init_p)