From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4698E382B3EE; Wed, 14 Dec 2022 18:50:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4698E382B3EE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671043813; bh=aia+u4JaIL5lVYEX1cylTaywoPd/N+NDwdRWz5pf1/c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UV6XZCP9kLH5ORoqMtrfUSDmqYrjoEbs64o9HyhjCRduaHLpmjgL2ylZY89YzmQVc dpEkPdzjVEAaJ4C/KJiyGBV1gTLoxnU8bXrvlUEvENoe3mOiYylNY9g1rft4Z3yENE HnuriZFALuclzFPf4cNPTkMCro/W09871e/fi7VI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108104] ICE in unify, at cp/pt.c:24333 with template partial specialization and pointer to memeber function and nullptr Date: Wed, 14 Dec 2022 18:50:13 +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: 12.2.0 X-Bugzilla-Keywords: ice-on-valid-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: 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=3D108104 --- Comment #3 from Andrew Pinski --- It is definitely a pointer to member function issue. I tried with just a pointer to a function and it worked and even a pointer = to a member field works too: ``` struct ss { int t; }; template struct Fred {}; template struct Fred {}; Fred<1, &ss::t> f1; ```=