diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-22 18:59:58 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-22 18:59:58 -0300 |
commit | 7cee998532a32b5eb39deb4a6059ecd8fc295f17 (patch) | |
tree | f598c3366da2cf9a1537c710dfda266691742568 /cross/cross-gcc/gcc-4.8-lambda-ICE.patch | |
parent | b87fbe691530d1c2e944ac4820e9efb7b68b65a1 (diff) | |
download | abslibre-7cee998532a32b5eb39deb4a6059ecd8fc295f17.tar.gz abslibre-7cee998532a32b5eb39deb4a6059ecd8fc295f17.tar.bz2 abslibre-7cee998532a32b5eb39deb4a6059ecd8fc295f17.zip |
update cross-gcc
Diffstat (limited to 'cross/cross-gcc/gcc-4.8-lambda-ICE.patch')
-rw-r--r-- | cross/cross-gcc/gcc-4.8-lambda-ICE.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/cross/cross-gcc/gcc-4.8-lambda-ICE.patch b/cross/cross-gcc/gcc-4.8-lambda-ICE.patch deleted file mode 100644 index cf77a9b35..000000000 --- a/cross/cross-gcc/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 - |