From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A5A63857C7F; Thu, 13 May 2021 02:19:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A5A63857C7F From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100577] [11/12 Regression] Unhelpful diagnostics for ill-formed call to partially applied range adaptor object Date: Thu, 13 May 2021 02:19:34 +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.0 X-Bugzilla-Keywords: diagnostic 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: 11.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work keywords target_milestone cf_known_to_fail 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: Thu, 13 May 2021 02:19:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100577 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |10.1.0, 10.2.0, 10.3.0 Keywords| |diagnostic Target Milestone|--- |11.2 Known to fail| |11.1.0 --- Comment #1 from Patrick Palka --- Diagnostics for ill-formed calls to adaptor pipelines regress similarly: #include int main() { extern int x[100]; (std::views::join | std::views::join)(x); } : In function =E2=80=98int main()=E2=80=99: :5:40: error: use of deleted function =E2=80=98constexpr auto std::ranges::views::__adaptor::_Pipe<_Lhs, _Rhs>::operator()(_Range&&) cons= t && [with _Range =3D int (&)[100]; _Lhs =3D std::ranges::views::_Join; _Rhs =3D= =20 std::ranges::views::_Join]=E2=80=99 In file included from :1: /home/patrick/code/gcc-master/libstdc++-v3/include/std/ranges:901:9: note: declared here 901 | operator()(_Range&& __r) const && =3D delete; | ^~~~~~~~=