This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]