https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97798
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2020-11-11 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Target Milestone|--- |11.0 --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Thanks! I've reproduced it now, and I'm reducing it. tester.ii: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT (&)[_Num])’: tester.ii:33343:26: error: non-constant condition for static assertion 33343 | static_assert(_Num <= __gnu_cxx::__numeric_traits<streamsize>::__max); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tester.ii:33343:26: error: the value of ‘__gnu_cxx::__numeric_traits_integer<__int20>::__max’ is not usable in a constant expression tester.ii:5079:27: note: ‘__gnu_cxx::__numeric_traits_integer<__int20>::__max’ was not initialized with a constant expression 5079 | static const _Value __max = (((_Value)(-1) < 0) ? (((((_Value)1 << ((sizeof(_Value) * 8 - ((_Value)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(_Value)0); | ^~~~~