Skip to content

Commit 3077a8f

Browse files
reedwmThe ml_dtypes Authors
authored andcommitted
Reproduce and debug problem in b/385748470.
PiperOrigin-RevId: 713440598
1 parent f656f18 commit 3077a8f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ml_dtypes/include/float8.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ class float8_e5m2;
5555
class float8_e5m2fnuz;
5656
class float8_e8m0fnu;
5757

58+
#ifdef __GNUC__
59+
static_assert(false, "GCC COMPILER VERSION: " __VERSION__);
60+
#elif _MSC_VER
61+
static_assert(false, "MSVC COMPILER VERSION: " __VERSION__);
62+
#elif __clang__
63+
static_assert(false, "Clang COMPILER VERSION: " __VERSION__);
64+
#else
65+
static_assert(false, "Unknown COMPILER VERSION: " __VERSION__);
66+
#endif
67+
5868
template <typename Derived>
5969
class float8_base {
6070
protected:

0 commit comments

Comments
 (0)