diff --git a/libcudacxx/test/libcudacxx/std/utilities/utility/utility.underlying/to_underlying.pass.cpp b/libcudacxx/test/libcudacxx/std/utilities/utility/utility.underlying/to_underlying.pass.cpp index 40a62ac7796..051780a8b2e 100644 --- a/libcudacxx/test/libcudacxx/std/utilities/utility/utility.underlying/to_underlying.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/utilities/utility/utility.underlying/to_underlying.pass.cpp @@ -86,7 +86,7 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test() assert(cuda::std::numeric_limits::min() == cuda::std::to_underlying(enum_min)); assert(cuda::std::numeric_limits::max() == cuda::std::to_underlying(enum_max)); - WithBitfieldEnums bf; + WithBitfieldEnums bf{}; bf.e1 = static_cast(3); bf.e2 = e_ushort::e; bf.e3 = e_bool::t;