aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch
new file mode 100644
index 0000000000..42fae868b5
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0095-PR-c-48528.patch
@@ -0,0 +1,24 @@
+From f96c29b23a4f631242aae823f9735a33e8e1cf0a Mon Sep 17 00:00:00 2001
+From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Sat, 9 Apr 2011 19:04:11 +0000
+Subject: [PATCH 095/200] PR c++/48528
+ * g++.dg/cpp0x/sfinae10.C: Remove abstract class.
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172230 138bc75d-0d04-0410-961f-82ee72b054a4
+
+index ede8b70..72dbce0 100644
+--- a/gcc/testsuite/g++.dg/cpp0x/sfinae10.C
++++ b/gcc/testsuite/g++.dg/cpp0x/sfinae10.C
+@@ -10,9 +10,7 @@ decltype(T(std::declval<Args>()...), char()) f(int);
+ template<class, class...>
+ char (&f(...))[2];
+
+-struct A { virtual ~A() = 0; };
+ struct B {};
+
+-static_assert(sizeof(f<A, int, int>(0)) != 1, "Error"); // a
+ static_assert(sizeof(f<B, void, int>(0)) != 1, "Error"); // b
+ static_assert(sizeof(f<void, int, int>(0)) != 1, "Error"); // c
+--
+1.7.0.4
+