This test uses a generic lambda, only available since C++14, so don't run it in earlier modes.
Tested x86_64-pc-linux-gnu, applying to trunk. gcc/testsuite/ChangeLog: * g++.dg/opt/pr102970.C: Only run in C++14 and up. --- gcc/testsuite/g++.dg/opt/pr102970.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/opt/pr102970.C b/gcc/testsuite/g++.dg/opt/pr102970.C index cf5b0ed70b4..2acb3c2c8dc 100644 --- a/gcc/testsuite/g++.dg/opt/pr102970.C +++ b/gcc/testsuite/g++.dg/opt/pr102970.C @@ -1,5 +1,5 @@ // { dg-do run } -// { dg-require-effective-target c++11 } +// { dg-require-effective-target c++14 } // { dg-options "-O2 -funroll-loops -fno-tree-vectorize" } #include <vector> base-commit: 18ae471f7b9b70cdcf92adc87c98674490cdbe7f -- 2.31.1