summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-06-17 17:11:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-23 11:49:04 +0100
commit68b545f4ff719f2b6e57d68b002dc9845c7a14ae (patch)
treef21182fa4d1394686b9afafbaac6d90bc3aa69a8 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch
parentb32666e29999c7c698b1a1378f96844fbc48358d (diff)
downloadopenembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.gz
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.bz2
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.xz
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.zip
gcc-4.6: Switch to using svn SRC_URI for recipe
We call the recipes 4.6 Remove the backport patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch
deleted file mode 100644
index 9f585c75b..000000000
--- a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0333-PR-c-45080.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From f6c71a6aa6e71a5dde50a13377d8ebd1a41aa9ab Mon Sep 17 00:00:00 2001
-From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Wed, 25 May 2011 15:26:25 +0000
-Subject: [PATCH] PR c++/45080
- * pt.c (instantiate_class_template_1): Call maybe_add_lambda_conv_op.
- * semantics.c (lambda_function): Check COMPLETE_OR_OPEN_TYPE_P.
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174208 138bc75d-0d04-0410-961f-82ee72b054a4
-
-index d379a8c..c5f2422 100644
---- a/gcc/cp/pt.c
-+++ b/gcc/cp/pt.c
-@@ -8557,6 +8557,9 @@ instantiate_class_template (tree type)
- }
- }
-
-+ if (CLASSTYPE_LAMBDA_EXPR (type))
-+ maybe_add_lambda_conv_op (type);
-+
- /* Set the file and line number information to whatever is given for
- the class itself. This puts error messages involving generated
- implicit functions at a predictable point, and the same point
-diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
-index 6207b12..b113626 100644
---- a/gcc/cp/semantics.c
-+++ b/gcc/cp/semantics.c
-@@ -8086,7 +8086,8 @@ lambda_function (tree lambda)
- type = lambda;
- gcc_assert (LAMBDA_TYPE_P (type));
- /* Don't let debug_tree cause instantiation. */
-- if (CLASSTYPE_TEMPLATE_INSTANTIATION (type) && !COMPLETE_TYPE_P (type))
-+ if (CLASSTYPE_TEMPLATE_INSTANTIATION (type)
-+ && !COMPLETE_OR_OPEN_TYPE_P (type))
- return NULL_TREE;
- lambda = lookup_member (type, ansi_opname (CALL_EXPR),
- /*protect=*/0, /*want_type=*/false);
-new file mode 100644
-index 0000000..53d8e99
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv5.C
-@@ -0,0 +1,15 @@
-+// PR c++/45080
-+// { dg-options -std=c++0x }
-+
-+typedef void(*pfn)();
-+
-+template<typename=int>
-+void f()
-+{
-+ pfn fn = []{};
-+}
-+
-+void test()
-+{
-+ f();
-+}
---
-1.7.0.4
-