https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100567
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- Hmm, I believe we're behaving correctly according to wg21.link/p2281. This paper clarifies that partial application of a range adaptor stores the extra arguments in their decayed form, so in particular we discard their cv-qualifications.