From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B644E399C00F; Wed, 12 May 2021 14:25:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B644E399C00F From: "hewillk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100558] std::ranges::views operator| fails to compile Date: Wed, 12 May 2021 14:25:10 +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: 11.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: hewillk at gmail dot com 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: Wed, 12 May 2021 14:25:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100558 =E5=BA=B7=E6=A1=93=E7=91=8B changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hewillk at gmail dot com --- Comment #1 from =E5=BA=B7=E6=A1=93=E7=91=8B = --- (In reply to Jooseong Lee from comment #0) > GCC 11.1.0 fails to compile this code >=20 > https://wandbox.org/permlink/yWSpe4tVZTI3ljKg >=20 > which has no problem in >=20 > GCC 12.0 HEAD 20210511 (https://wandbox.org/permlink/YWzUzsmIjdqe5zvH) > GCC 10.1.0 (https://wandbox.org/permlink/wVsn1mqhLuS2R5vg) >=20 > Some updates in 11.1.0 must be broken The problem here is narrowing conversion of list-initialization in require clause of range adaptors, which been resolved in https://github.com/gcc-mirror/gcc/commit/6e00d9bb113b531be15bc71cad2f174264= 8ba18a#diff-f6609135db2231e86a4562e8e69d605ff4ec06e6f02f43c5ffc23bc7126ab71= 9.=