On Fri, Nov 15, 2024 at 12:04:11AM -0500, Marek Polacek wrote: > This test FAILs due to the second dg-do compile: > FAIL: g++.dg/tree-ssa/pr58483.C -std=gnu++98 (test for excess errors) > and it passes in C++11 as well.
The other tests are valid C++11, so we can run them in C++11 as well (just they didn't have the second dg-do compile that would break them at C++98). Tested on x86_64-linux with GXX_TESTSUITE_STDS=98,11,14,17,20,23,26 make check-g++ RUNTESTFLAGS="dg.exp='pr96945.C pr110819.C pr116868.C pr58483.C'" and committed to trunk as obvious. 2024-11-15 Jakub Jelinek <ja...@redhat.com> * g++.dg/tree-ssa/pr116868.C: Change effective target from c++14 to c++11. * g++.dg/tree-ssa/pr96945.C: Likewise. * g++.dg/tree-ssa/pr110819.C: Likewise. --- gcc/testsuite/g++.dg/tree-ssa/pr116868.C.jj 2024-11-14 22:44:45.504490005 +0100 +++ gcc/testsuite/g++.dg/tree-ssa/pr116868.C 2024-11-15 08:36:05.572401023 +0100 @@ -1,4 +1,4 @@ -// { dg-do compile { target c++14 } } +// { dg-do compile { target c++11 } } // { dg-options "-O2 -fdump-tree-optimized" } #include <vector> int sumVector() { --- gcc/testsuite/g++.dg/tree-ssa/pr96945.C.jj 2024-11-14 22:44:45.504490005 +0100 +++ gcc/testsuite/g++.dg/tree-ssa/pr96945.C 2024-11-15 08:35:25.971956988 +0100 @@ -1,4 +1,4 @@ -// { dg-do compile { target c++14 } } +// { dg-do compile { target c++11 } } // { dg-options "-O1 -fdump-tree-optimized" } #include <vector> struct c { --- gcc/testsuite/g++.dg/tree-ssa/pr110819.C.jj 2024-11-14 22:44:45.504490005 +0100 +++ gcc/testsuite/g++.dg/tree-ssa/pr110819.C 2024-11-15 08:37:53.032892354 +0100 @@ -1,4 +1,4 @@ -// { dg-do compile { target c++14 } } +// { dg-do compile { target c++11 } } // { dg-options "-O1 -fdump-tree-optimized" } #include<vector> Jakub