]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Replace dg-options "-std=c++20" with dg-add-options strict_std
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Sep 2023 13:11:54 +0000 (14:11 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 20:57:38 +0000 (21:57 +0100)
commit07c602bbbd5134a03b363009abe927d0761e5ff0
tree95e30f4cb583b7d71ebeb13323f2d687a39a4ab2
parentc4bf6e8e8ac9aae63dd8aa9a645a282531549e75
libstdc++: Replace dg-options "-std=c++20" with dg-add-options strict_std

The testsuite will automatically select C++20 for these tests now, and
removing the hardcoded -std option allows them to be tested for C++23
and C++26 as well. Because they test a problem seen with -std=c++20 add
the new { dg-add-options strict_std } directive so that the test runner
uses -std=c++NN not -std=gnu++NN.

libstdc++-v3/ChangeLog:

* testsuite/24_iterators/reverse_iterator/100639.cc: Remove
dg-options and add dg-add-options strict_std.
* testsuite/std/ranges/iota/93267.cc: Likewise.
* testsuite/std/ranges/iota/96042.cc: Likewise.
* testsuite/std/ranges/iota/size.cc: Likewise.
* testsuite/std/ranges/subrange/96042.cc: Likewise.
libstdc++-v3/testsuite/24_iterators/reverse_iterator/100639.cc
libstdc++-v3/testsuite/std/ranges/iota/93267.cc
libstdc++-v3/testsuite/std/ranges/iota/96042.cc
libstdc++-v3/testsuite/std/ranges/iota/size.cc
libstdc++-v3/testsuite/std/ranges/subrange/96042.cc