This was probably copied from a std::filesystem test and the -std option wasn't removed.
libstdc++-v3/ChangeLog: * testsuite/experimental/filesystem/filesystem_error/cons.cc: Remove -std=gnu++17 option. Tested x86_64-linux, committed to trunk.
commit ed0b4bb29a50d6be0e4b6411b3cc9f22967f1313 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Jul 31 18:02:10 2020 libstdc++: Remove accidental -std=gnu++17 from test This was probably copied from a std::filesystem test and the -std option wasn't removed. libstdc++-v3/ChangeLog: * testsuite/experimental/filesystem/filesystem_error/cons.cc: Remove -std=gnu++17 option. diff --git a/libstdc++-v3/testsuite/experimental/filesystem/filesystem_error/cons.cc b/libstdc++-v3/testsuite/experimental/filesystem/filesystem_error/cons.cc index 19dcc2a19bf..0c7420c1461 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/filesystem_error/cons.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/filesystem_error/cons.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=gnu++17 -lstdc++fs" } +// { dg-options "-lstdc++fs" } // { dg-do run { target c++11 } } // { dg-require-filesystem-ts "" }