On Tue, Apr 14, 2020 at 12:54:17PM +0200, Martin Liška wrote: > On 4/14/20 10:37 AM, Jakub Jelinek wrote: > > On Tue, Apr 14, 2020 at 09:11:37AM +0200, Martin Liška wrote: > > > +/* PR c++/94314. */ > > > +/* { dg-do run } */ > > > +/* { dg-options "-O2 -fdump-tree-cddce-details -std=c++14" } */ > > > +/* { dg-additional-options "-fdelete-null-pointer-checks" } */ > > > > Any reason why you want to do it for -std=c++14 only? > > I need at least -std=c++11 for the noexcept keyword. I updated that.
With c++11 one gets: Excess errors: .../testsuite/g++.dg/pr94314-4.C:19:28: error: too many arguments to function 'void operator delete(void*)' because C++ sized deallocation is a C++14 feature. One needs to use check-c++-all or GXX_TESTSUITE_STDS=98,11,14,17,2a make check or similar to get that though, because 11 isn't tested by default, only 98, 14 and 17 are ATM I think. Fixed thusly, committed to trunk as obvious. Note for next time, there shouldn't be any tests directly in g++.dg/ which has subdirectories, so optimization related tests should go into g++.dg/opt/ etc. 2020-04-17 Jakub Jelinek <ja...@redhat.com> PR c++/94314 * g++.dg/pr94314-4.C: Require c++14 rather than c++11. --- gcc/testsuite/g++.dg/pr94314-4.C.jj 2020-04-17 08:49:49.129682532 +0200 +++ gcc/testsuite/g++.dg/pr94314-4.C 2020-04-17 08:57:24.836861755 +0200 @@ -1,5 +1,5 @@ /* PR c++/94314. */ -/* { dg-do run { target c++11 } } */ +/* { dg-do run { target c++14 } } */ /* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */ int count = 0; Jakub