From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 10B2F3858D28; Tue, 27 Feb 2024 16:44:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10B2F3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709052280; bh=ssJZ0ZLf3ExvrUyjMEV1FoF5dPhLFKACMg0Tigrok/g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XYeol9JuV4gHgemPfjwxtGsvhsE9d8YSrASZGAWXfLyO9AfgrDvC/fi/23PUI0IcL br9zxIJ0NLDTuHf3uf+3ZCRw1+Vx04eTw3s1qGWcYyVBcRbv7FpvjUrH+Ah6qkHYsw O8yWLEGEfM4toyltGspz+crAJJWJJVfSQsKE1/jM= From: "enrico.seiler+gccbugs at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114013] [14 Regression] Specializations of var templates no longer emitted since r14-8987 Date: Tue, 27 Feb 2024 16:44:39 +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: 14.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: enrico.seiler+gccbugs at outlook dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114013 --- Comment #3 from Enrico Seiler --- For -O0 and -O1, this also does not link: template int value; template <> inline int value<1>; void bar(int) { bar(value<1>); } https://godbolt.org/z/Wxv7PE8ob=