https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98829
--- Comment #3 from Nemanja Boric <gnu at nemanjaboric dot com> --- Changing: static constexpr std::uint64_t kMagicNumber = 1730; static constexpr std::uint64_t kCustomNaN = 0x7ff0000000000000 | kMagicNumber; to static inline std::uint64_t kMagicNumber = 1730; static inline std::uint64_t kCustomNaN = 0x7ff0000000000000 | kMagicNumber; also avoids the issue.