[PATCH] libstdc++: Make constexpr-if actually disable some tests [PR124722]

Jonathan Wakely jwakely.gcc@gmail.com
Tue Apr 7 15:45:00 GMT 2026


On Tue, 7 Apr 2026, 11:19 Matthias Kretz, <MatthiasKretz@gmx.net> wrote:

> libstdc++-v3/ChangeLog:
>
>         PR libstdc++/124722
>         * testsuite/std/simd/traits_impl.cc (test): Make test() a
>         function template and instantiate it.
>
> Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
>


OK

---
>  libstdc++-v3/testsuite/std/simd/traits_impl.cc | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/libstdc++-v3/testsuite/std/simd/traits_impl.cc b/libstdc++-v3/
> testsuite/std/simd/traits_impl.cc
> index 06bf6d5be25..f73a9e3beb5 100644
> --- a/libstdc++-v3/testsuite/std/simd/traits_impl.cc
> +++ b/libstdc++-v3/testsuite/std/simd/traits_impl.cc
> @@ -17,6 +17,7 @@ namespace simd
>
>  using namespace std::simd;
>
> +template <int = 0>
>  void test()
>  {
>    template for (auto t : {float(), double(),
> @@ -147,6 +148,8 @@ namespace simd
>    static_assert(__highest_bit(0b10000001000ull) == 10);
>  }
>
> +template void test<>();
> +
>  consteval bool
>  throws(auto f)
>  {
> --
> ──────────────────────────────────────────────────────────────────────────
>  Dr. Matthias Kretz                           https://mattkretz.github.io
>  GSI Helmholtz Center for Heavy Ion Research               https://gsi.de
>  std::simd
> ──────────────────────────────────────────────────────────────────────────
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20260407/a39b5dbf/attachment.htm>


More information about the Libstdc++ mailing list