diff --git a/libcudacxx/include/cuda/std/__type_traits/common_type.h b/libcudacxx/include/cuda/std/__type_traits/common_type.h index ecf8218aa7..10c1d5556f 100644 --- a/libcudacxx/include/cuda/std/__type_traits/common_type.h +++ b/libcudacxx/include/cuda/std/__type_traits/common_type.h @@ -12,13 +12,14 @@ #include -#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) -# pragma GCC system_header -#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) -# pragma clang system_header -#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) -# pragma system_header -#endif // no system header +// We cannot use system header here because of nvbug4867473 +// #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) +// # pragma GCC system_header +// #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) +// # pragma clang system_header +// #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) +// # pragma system_header +// #endif // no system header #include #include diff --git a/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/double_float_explicit.pass.cpp b/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/double_float_explicit.pass.cpp index 3aae8f7fe4..207c915313 100644 --- a/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/double_float_explicit.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/double_float_explicit.pass.cpp @@ -15,6 +15,8 @@ // constexpr complex(const complex&); // }; +#undef _CCCL_NO_SYSTEM_HEADER + #include #include diff --git a/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp b/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp index 9b990689d0..8092d39787 100644 --- a/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/numerics/complex.number/complex.special/float_double_explicit.pass.cpp @@ -15,6 +15,8 @@ // explicit constexpr complex(const complex&); // }; +#undef _CCCL_NO_SYSTEM_HEADER + #include #include