diff options
author | Jason Merrill <jason@redhat.com> | 2013-09-15 15:34:27 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2013-09-15 15:34:27 -0400 |
commit | 018795f47711aa9d4a541a7bae0f27efeea66f12 (patch) | |
tree | a3c24c0041c17c33393ad2ddf813f84a4b288e6a /gcc/cp | |
parent | 5ef7093dde1dee4faeb6f2207ecccdf20c79d7d7 (diff) | |
download | gcc-018795f47711aa9d4a541a7bae0f27efeea66f12.zip gcc-018795f47711aa9d4a541a7bae0f27efeea66f12.tar.gz gcc-018795f47711aa9d4a541a7bae0f27efeea66f12.tar.bz2 |
* lambda.c (add_capture): Don't add DECL_LANG_SPECIFIC.
From-SVN: r202603
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lambda.c | 2 | ||||
-rw-r--r-- | gcc/cp/pt.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 61e681a..af243a2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +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> PR c++/58273 diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index a53e692..bf75834 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) diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d560e3c..fed004c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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 types in EXPANDED_TYPES; otherwise, LEN is 1. */ r = NULL_TREE; |