https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109647
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a clang bug.
The primary template on line 5850 has these constraints:
template<view _Vp>
requires input_range<_Vp>
class chunk_view : public view_interface<chunk_view<_Vp>>
But then there is a partial specialization for forward_range on line 6075:
template<view _Vp>
requires forward_range<_Vp>
class chunk_view<_Vp> : public view_interface<chunk_view<_Vp>>
The error on line 6151 incorrectly says that the definition is inconstistent
with line 5850. That's true, but it's a definition for the one on line 6075
instead.