From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B37683858D32; Sun, 21 Jan 2024 09:03:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B37683858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705827780; bh=mHQ5GCX+JVPqVvzQ+9WYa3N7Pis4OgfOhBJ3G0LmfeM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kLLmxq2v/MjSGPktmU47cmOER93ILk1iCzRtq0H++UXeY4VACHwBHUehZfcAnDBf5 45KldHfM9Nsa1Dxc9aiul/bI3CUhpLzzDIVun7OpjMSHhU8ko2ukbf7KMkN+gPePRi /pmvyf5uuIV8nfU7gs4Ge071afwpyAsZwjcAeLgw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113529] Incorrect result of requires-expression in case of function call ambiguity and `operator<=>` Date: Sun, 21 Jan 2024 09:03:00 +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: 13.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: short_desc cf_reconfirmed_on keywords bug_status everconfirmed 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=3D113529 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Incorrect result of |Incorrect result of |requires-expression in case |requires-expression in case |of function call ambiguity |of function call ambiguity | |and `operator<=3D>` Last reconfirmed| |2024-01-21 Keywords| |wrong-code Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed. I just tried a normal function and not operator<=3D> and GCC does the corre= ct thing. It is definitely `operator<=3D>` related because removing `operator<=3D>` a= nd having an ambigous `operator<` does the correct thing too.=