From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 39B223857C66; Sun, 8 Oct 2023 00:23:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39B223857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696724631; bh=Oz1Iuq5j1Yyek5YOKePWDjKUMgU0l6H3zYk8eZ6bAIc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FWkZ+UlGjbvGsEKzAv9JR2FHumSR0WqMerFk4irySBLe1sKNt7c+u9Lb/WBVyMylo 1OiVRl6kfjo31sMdf6SXHmeaCInffahpxlv0Zp/ohlAHmnn7L6UHkF6WgLVuXGMjoM 1oRHdC54Y0FukJPE9/FEW8/cxAMYjYIbQZFor6XU= From: "arthur.j.odwyer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94039] conditional operator fails to use proper overload Date: Sun, 08 Oct 2023 00:23:50 +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: 9.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: arthur.j.odwyer at gmail dot com 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94039 Arthur O'Dwyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.j.odwyer at gmail d= ot com --- Comment #3 from Arthur O'Dwyer --- You can also hit this with a lambda, which of course is isomorphic to Andre= 's test case: void (*a)() =3D true ? []{} : nullptr; Bug #88458 ("GCC rejects (true ? 0 : nullptr)") might be tangentially relat= ed.=