https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113154
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I doubt, the patch which fixed this can/will be backported to the GCC 11
> releases.
Right. GCC 11 is correct according to the C++20 standard, but the semantics
were changed after the C++20 standard was published. That was implemented in
GCC with:
commit 5e1b17f038671df1a6580ece4cd58ef91cc1e234
Author: Patrick Palka
Date: Tue Feb 22 09:37:58 2022 -0500
libstdc++: Implement P2415R2 changes to viewable_range / views::all
This implements the wording changes in P2415R2 "What is a view?", which
is a DR for C++20.
I don't think we want to backport it.