* lambda.c (add_capture): Don't add DECL_LANG_SPECIFIC.
authorJason Merrill <jason@redhat.com>
Sun, 15 Sep 2013 19:34:27 +0000 (15:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 15 Sep 2013 19:34:27 +0000 (15:34 -0400)
From-SVN: r202603

gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/cp/pt.c

index 61e681adbcaae56228c83814f3abdcd226e9681d..af243a2a4cfa8fd8655d8096b36b887113421ec6 100644 (file)
@@ -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
index a53e692d48b462ca94db0bb456681cf45d833c29..bf758348816c235c5637226e4a2b617fcf98ca92 100644 (file)
@@ -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)
index d560e3cb161d7b739970ec950b221fdf2ae2d106..fed004c901313d5208d78d6b1cc0aceaeaafaa53 100644 (file)
@@ -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;