On Tue, Apr 10, 2018 at 08:57:22PM +0200, Paolo Carlini wrote: > 2018-04-10 Paolo Carlini <paolo.carl...@oracle.com> > > PR c++/70808 > * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: New.
The testcase FAILs in -std=c++98 mode for obvious reasons. I've committed following after testing it with make check-c++-all RUNTESTFLAGS=dg.exp=Wzero-as-null-pointer-constant-7.C 2018-04-11 Jakub Jelinek <ja...@redhat.com> PR c++/70808 * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Require c++11 effective target. --- gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C (revision 259324) +++ gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C (revision 259325) @@ -1,4 +1,5 @@ // PR c++/70808 +// { dg-do compile { target c++11 } } // { dg-options "-Wzero-as-null-pointer-constant" } int* no_warn = {}; Jakub