]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Make constexpr-if actually disable some tests [PR124722]
authorMatthias Kretz <m.kretz@gsi.de>
Tue, 7 Apr 2026 10:15:10 +0000 (12:15 +0200)
committerMatthias Kretz <m.kretz@gsi.de>
Tue, 7 Apr 2026 16:45:10 +0000 (18:45 +0200)
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>
libstdc++-v3/testsuite/std/simd/traits_impl.cc

index 06bf6d5be256ac5867bbf7bc495bd8435748538f..f73a9e3beb5b06a026a419a31afa56651ca10ba4 100644 (file)
@@ -17,6 +17,7 @@ using std::float64_t;
 
 using namespace std::simd;
 
+template <int = 0>
 void test()
 {
   template for (auto t : {float(), double(),
@@ -147,6 +148,8 @@ void test()
   static_assert(__highest_bit(0b10000001000ull) == 10);
 }
 
+template void test<>();
+
 consteval bool
 throws(auto f)
 {