https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81642
Ryan Greenblatt <ryan_greenblatt at brown dot edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ryan_greenblatt at brown dot edu --- Comment #4 from Ryan Greenblatt <ryan_greenblatt at brown dot edu> --- This occurs for c++ templates/constexpr as well. For example: ``` #include <cstdint> #include <limits> template <unsigned n> constexpr bool bigger_than_max = n > std::numeric_limits<uint8_t>::max(); static_assert(!bigger_than_max<0>); static_assert(bigger_than_max<256>); ``` https://godbolt.org/z/5fG4vE