https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81642

--- Comment #5 from Ryan Greenblatt <ryan_greenblatt at brown dot edu> ---
(In reply to Ryan Greenblatt from comment #4)
> 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

Oops, actually this doesn't happen on trunk - look like it was fixed recently.

Reply via email to