From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63115385840B; Mon, 25 Mar 2024 15:40:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63115385840B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711381237; bh=uBuVwciFiJNx/n0RfTn6NcjfdqvmU03drVQM/t7eWcw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l95qbHyaXAGPVmw8WsGx6tVzlkCK6ORhntG2MVQA6jaToN5Fw0CVL2o9FvmCsUleq 951Q7aiHIvLbQPhU8xb69orOOuc7pybqn1YWPJA1bsNWqpnpOlGHct7pDMVUAnMm42 7om7X1F31lozB0nw9luxKMpOtUBh5NxLmAR9TGvg= From: "barry.revzin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBzYW5pdGl6ZXIvNzE5NjJdIGVycm9yOiDigJgoKCYgeCkg?= =?UTF-8?B?IT0gMHUp4oCZIGlzIG5vdCBhIGNvbnN0YW50IGV4cHJlc3Npb24=?= Date: Mon, 25 Mar 2024 15:40:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 6.1.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: barry.revzin 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=3D71962 Barry Revzin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |barry.revzin at gmail dot = com --- Comment #12 from Barry Revzin --- Similar failure: struct A { void f(); }; int main() { constexpr auto pmf =3D &A::f; static_assert(pmf !=3D nullptr); // error with UBSAN only } This surfaces from attempting to implement function_ref (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0792r14.html) wh= ich has a constructor that takes the callable as a non-type template parameter = and static_asserts that it's not a null pointer. Which apparently doesn't work with UBSAN.=