From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A1663857C57; Sat, 29 Aug 2020 00:29:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A1663857C57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598660974; bh=A9/2fQ5z+eeS8EC3adf7JK3zJvqu4h1v/BEPjOLu41w=; h=From:To:Subject:Date:From; b=rpKhyFgT8ubDtn2doq8nPJN5ti3OgzbVpMsoJDambdOnB0yV/5rNwcfLivMmBPw6d FFJgO3C9DqVUpwy9CnPWpd8QAlAVQjcAdkqXAhHoWGHZ8xhl6ndBGmgP0Nv0rRAPa6 WCx20fAW74CSmsr8CfwYjOD3slqZNDF1pnKKVMJU= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96840] New: Recursive substitution in constrained commutative operator Date: Sat, 29 Aug 2020 00:29:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp 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: bug_id short_desc product version bug_file_loc bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sat, 29 Aug 2020 00:29:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96840 Bug ID: 96840 Summary: Recursive substitution in constrained commutative operator Product: gcc Version: 11.0 URL: https://godbolt.org/z/cedacs Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johelegp at gmail dot com Target Milestone: --- I may be wrong, but I think this should compile. Clang accepts it as does G= CC 10.2 and did the GCC 11 build from a little while ago. See the URL: ```C++ template concept C =3D requires(T t, U u) { t * u; }; template struct Int { template requires C friend void operator*(T, Int) { } template requires C friend void operator*(Int, T) { } }; void f() { 0 * Int{}; } ```=