From 3077a8f59d81bea89ce1c97c7971695acd378fe2 Mon Sep 17 00:00:00 2001 From: Reed Wanderman-Milne Date: Wed, 8 Jan 2025 15:40:15 -0800 Subject: [PATCH] Reproduce and debug problem in b/385748470. PiperOrigin-RevId: 713440598 --- ml_dtypes/include/float8.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ml_dtypes/include/float8.h b/ml_dtypes/include/float8.h index 5a16b8a2..d6edb549 100644 --- a/ml_dtypes/include/float8.h +++ b/ml_dtypes/include/float8.h @@ -55,6 +55,16 @@ class float8_e5m2; class float8_e5m2fnuz; class float8_e8m0fnu; +#ifdef __GNUC__ + static_assert(false, "GCC COMPILER VERSION: " __VERSION__); +#elif _MSC_VER + static_assert(false, "MSVC COMPILER VERSION: " __VERSION__); +#elif __clang__ + static_assert(false, "Clang COMPILER VERSION: " __VERSION__); +#else + static_assert(false, "Unknown COMPILER VERSION: " __VERSION__); +#endif + template class float8_base { protected: