This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, 4.6] Unsupported c++-11 selector in nullptr28.C
- From: Michael Hope <michael dot hope at linaro dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 03 Jul 2012 16:09:18 +1200
- Subject: [PATCH, 4.6] Unsupported c++-11 selector in nullptr28.C
This patch fixes a selector fault in the new g++.dg/cpp0x/nullptr28.C test
by changing the c++-11 target selector to the equivalent options. The
test itself was backported from trunk in r188953 to fix PR52988.
Tested on x86_64-linux. The ERROR changes to a PASS.
OK for 4.6?
-- Michael
gcc/testsuite/
2012-07-03 Michael Hope <michael.hope@linaro.org>
PR c++/53814
* g++.dg/cpp0x/nullptr28.C: Change selector for explicit
options.
diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
index 05fbe57..4cc790d 100644
--- a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
+++ b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
@@ -1,4 +1,5 @@
-// { dg-do run { target c++11 } }
+// { dg-do run }
+// { dg-options "-std=c++0x -pedantic-errors" }
typedef decltype(nullptr) nullptr_t;