Patchwork [4.6] Unsupported c++-11 selector in nullptr28.C

login
register
mail settings
Submitter Michael Hope
Date July 3, 2012, 4:09 a.m.
Message ID <4FF2706E.6090809@linaro.org>
Download mbox | patch
Permalink /patch/168680/
State New
Headers show

Comments

Michael Hope - July 3, 2012, 4:09 a.m.
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.
Jakub Jelinek - July 3, 2012, 4:42 a.m.
On Tue, Jul 03, 2012 at 04:09:18PM +1200, Michael Hope wrote:
> 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?

Okay.

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

	Jakub

Patch

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;