Skip to content

Commit

Permalink
Reproduce and debug problem in b/385748470.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 713440598
  • Loading branch information
reedwm authored and The ml_dtypes Authors committed Jan 9, 2025
1 parent f656f18 commit ccaf545
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ml_dtypes/include/float8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename Derived>
class float8_base {
protected:
Expand Down

0 comments on commit ccaf545

Please sign in to comment.