summarylogtreecommitdiffstats
path: root/gcc-4.8-lambda-ICE.patch
diff options
context:
space:
mode:
authorFantix King2015-10-26 21:41:07 +0800
committerFantix King2015-11-13 01:21:36 +0800
commit5fa61e7d0124c6c0bd29ac3ceb9a3ca318465397 (patch)
treeaeefd02a350231b2821a8cfcfb5df902a7ff616a /gcc-4.8-lambda-ICE.patch
parent82c5cb513b8bfc1d0df3a130730fa89c6d62dd31 (diff)
downloadaur-5fa61e7d0124c6c0bd29ac3ceb9a3ca318465397.tar.gz
5.2.0-2.1
Diffstat (limited to 'gcc-4.8-lambda-ICE.patch')
-rw-r--r--gcc-4.8-lambda-ICE.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc-4.8-lambda-ICE.patch b/gcc-4.8-lambda-ICE.patch
deleted file mode 100644
index cf77a9b352b8..000000000000
--- a/gcc-4.8-lambda-ICE.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
-index 0b8e2f7..ad1c209 100644
---- a/gcc/cp/semantics.c
-+++ b/gcc/cp/semantics.c
-@@ -2719,8 +2719,10 @@ finish_member_declaration (tree decl)
- /*friend_p=*/0);
- }
- }
-- /* Enter the DECL into the scope of the class. */
-- else if (pushdecl_class_level (decl))
-+ /* Enter the DECL into the scope of the class, if the class
-+ isn't a closure (whose fields are supposed to be unnamed). */
-+ else if (CLASSTYPE_LAMBDA_EXPR (current_class_type)
-+ || pushdecl_class_level (decl))
- {
- if (TREE_CODE (decl) == USING_DECL)
- {
-diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-names1.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-names1.C
-new file mode 100644
-index 0000000..df2b037
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-names1.C
-@@ -0,0 +1,9 @@
-+// PR c++/56710
-+// { dg-options "-std=c++11 -Wall" }
-+
-+int main()
-+{
-+ int t = 0;
-+ return [&]() -> int {int __t; __t = t; return __t; }();
-+ return [&t]() -> int {int __t; __t = t; return __t; }();
-+}
---
-1.8.4.2
-