From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 097E5385DC0A; Fri, 8 Mar 2024 17:25:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 097E5385DC0A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709918753; bh=X4vkpWoVKzGzVI3yuJMfeoaH4ZJ19pxQscoPjiYiUh8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cMVie0tVVjK2TDYE+8Yog9QYu2bHslIAQFCYTjBUuIzISGs/a5E30bGKWLcGf2Eth 2yzLnU0YGUWzdq0XW6Jcrj5F7ObE0sTsMBZTFUnTtfkzaVS5ZoaZDixVGnWC8HTlsg 0amkqlNonDeU0pkr957OdCdjIwzWJNe2u4MXTDkA= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110323] [11/12/13/14 Regression] Code for explicit instantiation of template method of template class not generated Date: Fri, 08 Mar 2024 17:25:51 +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.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D110323 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #7 from Patrick Palka --- I noticed we emit the function if we turn it into a non-member: #include constexpr int VAL =3D 1; template void bar(typename std::conditional::type arg) { } template void bar<1>(int arg); I wonder why this bug seems specific to member functions?=