https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124722
Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #11 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> ---
🤦 constexpr-if doesn't have the effect I intended here because test() is not a
function template.
patch:
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)
{