https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
--- Comment #6 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- A workaround for static member functions: ```C++ template<std::unsigned_integral I> [[nodiscard]] consteval I max() { return std::numeric_limits<I>::max(); } if (v == std::numeric_limits<I>::max()) break; if (v == max<I>()) break; ```