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.h...@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

Reply via email to