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)
 {
