From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF477386F432; Tue, 26 May 2020 13:54:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF477386F432 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590501291; bh=LdIRvnMjfroPBPL3NitpZa11yxEkGhHxkRPHwhv4zBo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VJCrXD2kSM25+UKEzrRtko2aUckaZ/tuwwua0K+Icwb90foaUzdPK+ooV2gPj1Gee Zcdw6LzXrKXF2bgPmsbnio4RuKgYc+6z7S4gZxNwS0VB6pqm71heTXdZWTOfszAKL9 t8+RFyR9eGg0EK2r2HcpCvoJ3xqvGbu4yKL/ml1o= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/95322] std::list | take | transform, expression does not work cbegin() == end() Date: Tue, 26 May 2020 13:54:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 13:54:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95322 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #4 from Patrick Palka --- Attempting to work around this by using views::common like so auto view3 =3D view1 | std::views::transform([] (int i) { return i += 3;}) | std::views::common; /* ... */ std::ranges::cbegin(view3) =3D=3D std::ranges::end(view3); instead results is a compilation failure in stl_iterator.h: /home/patrick/code/gcc/libstdc++-v3/include/bits/stl_iterator.h:1772:27: er= ror: =E2=80=98_Common_iter_proxy=E2=80=99 was not declared in this scope; did yo= u mean =E2=80=98std::__detail::_Common_iter_proxy=E2=80=99? 1772 | return _Common_iter_proxy(*_M_it);=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 | ~~~~~~~~~~~~~~~~~~^~~~~~~~=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 | std::__detail::_Common_iter_p= roxy =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 /home/patrick/code/gcc/libstdc++-v3/include/bits/stl_iterator.h:1572:13: no= te: =E2=80=98std::__detail::_Common_iter_proxy=E2=80=99 declared here=