From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 127283858C2B; Tue, 9 May 2023 21:23:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 127283858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683667395; bh=dxobdNosiR8aqy3Xv9gSRXuiKOhW3sQpKXe8/VTJ1bQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a/pdT2ZPnU1jP16+rG5fR+WFB2hvoF/Gm3qPIEpU4S5oo115Gkd7HVNHd28tBeMdP gGIMUXozWNwRi5inJXHIvAEnGPLzHMjVpzQxeATAM+eloRnNi8ClYMy3sdd6oexDgK nvXgAcONLLABfVcrUhaSAvf2/Ju0LSvTk+2KefF0= From: "mail at lboeger dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97700] Bogus error when a class containing a function pointer is used as a non-type template parameter Date: Tue, 09 May 2023 21:23:14 +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: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mail at lboeger dot de 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=3D97700 --- Comment #5 from Lukas B=C3=B6ger --- One part of this seems to be resolved with version 13. Below, only the lamb= da use case fails to compile, whereas prior to version 13, both type aliases a= re rejected: ``` void fun() {} struct S=20 {=20 void (*f)();=20 };=20 template struct X {}; using works =3D X; using does_not_work =3D X; ``` See https://godbolt.org/z/3E7WE6zKo=