From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B75213858C32; Thu, 21 Mar 2024 21:40:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B75213858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711057220; bh=IrrlKDFSYYnn6+lNEAq/fbhbfvy44V7mDXRo2z2p9/o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IdY7JJORPfOJrlTFEaT8hR0CCIfvb+Xoz3U2d5vgD7Sw38iDhnjfRRTQyFRgbKtrv FVEwOisJ+eudm7bbV/WzTSg9DrDBR3rlaFY29EUq9qkW6r3lN96wmKW8kuF84GZmqq EZZebew4TdHo7Rpejp/U4LOMimcE6nQiuJNUXGIk= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99599] [11/12/13 Regression] Concepts requirement falsely reporting cyclic dependency, breaks tag_invoke pattern Date: Thu, 21 Mar 2024 21:40:18 +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: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: SUSPENDED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99599 --- Comment #21 from Jonathan Wakely --- Here's a very small reproducer: template struct indirect { template requires // (!is_indirect) && requires (const T& t, const U& u) { t =3D=3D u; } friend constexpr bool operator=3D=3D(const indirect&, const U&) { return false; } T* _M_ptr{}; }; indirect i; bool b =3D i =3D=3D 1; It compiles with trunk, although my real case that this was reduced from doesn't. It works if you uncomment the extra constraint and define: template class indirect; template constexpr bool is_indirect =3D false; template constexpr bool is_indirect> =3D true;=