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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The reason it fails is here:

D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: candidate: 'constexpr std::span<_Type, _Extent>::span() requires  _Extent
+ 1 <= 1 [with _Type = char; short unsigned int _Extent = 65535]'
  147 |       span() noexcept
      |       ^~~~
D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:147:7:
note: constraints not satisfied

The requires expression fails if size_t promotes to int, which is true for
bizarre mode.

Reply via email to