From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA1A23985461; Fri, 15 May 2020 14:10:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA1A23985461 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589551830; bh=YUAq+BPjkhLLkNVCwplQ30KbcLksVWE82DOwNA76dts=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aFV6RPSulh4KMwYhL3YbZOjsQ+eOCSWKEZyIG4qkhPESrWZOfs3/R48KBiza0+KAI FDfhDLg/G8kxjN26cL6VclHGX9W6QgKTSBFsBSY57nl6pzLKbAHzBZf7QGS2YE/L8Y 62n9URkSbQKl7jSJEFb7ecrVdypMKNpPk6CdMaSE= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95100] xxx_view adaptors don't work with pipeline operator Date: Fri, 15 May 2020 14:10:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: Fri, 15 May 2020 14:10:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95100 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka --- (In reply to rhalbersma from comment #0) > Combining the std::ranges::xxx_view adaptors with the pipeline operator d= oes > not compile, in contrast to the supposedly expression equivalent > std::ranges:views::xxx=20 Hmm, I don't see anything in the spec that would imply views::xxx should be expression-equivalent to xxx_view. What I see is that views::xxx(E) is, for some values of E, expression-equivalent to xxx_view{E}. For instance [range.reverse.overview] says: Given a subexpression E, the expression views=E2=80=8B::=E2=80=8Breverse= (E) is expression-equivalent to:=20 [...] - Otherwise, equivalent to reverse_=C2=ADview{E}. Could you point me to the relevant bits of the spec that would imply this stronger expression-equivalence?=