From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 651733858D1E; Mon, 6 May 2024 18:43:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 651733858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715021033; bh=61o0v2LW5Yn5MNZdBvZGDOh8AbuU5BbknWoRVvIRyLM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C+vyfJYDP4vLy+Xdch+yOXM9qnaXjUHd6/QSdqwA61SgdcLqRPOKw1NYFQvQZEyeZ GkNgkXBC1JQZ9PWjxekq9C7FLGp7bD4iMpN0tvmar39GypFkSeoZwUVEalBBnzqdWs 6SoNsTk4kYyd+5+ZtipluehHgaXWCYqeYwXVfwY8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114962] For each iteration in static assert fails to compile with pointer to member functions Date: Mon, 06 May 2024 18:43:53 +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.0 X-Bugzilla-Keywords: rejects-valid 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: 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=3D114962 --- Comment #4 from Andrew Pinski --- (In reply to Marek Polacek from comment #3) > // PR c++/114962 Reduced much further and even removing the for loop and the array: ``` struct A { void third(); using Handler =3D void (A::*)(); static constexpr Handler kArray =3D &A::third; static_assert([] { return (kArray)!=3Dnullptr; }(), ""); }; ``` Which does point to a Pointer to member function issue.=