From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D5DB385842C; Mon, 8 Apr 2024 21:16:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D5DB385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712611018; bh=NKx0aafMmATaeREsLEo1FJc+PrBMeVusTL7bWHsZ8lg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YTG0CWfuLkXCdA+n3GEp3My/5ednQtOM419M5gLRamsom4Ns2DAMsIQ9XBr9bprtu FS5sldXmT58ceBN/JPBOu++cbsWbcZgwHyDRgzZQ3T0h7VAJTqvqKTFApUy1kKvZJH h2zwTBbbUHLpPfoQGp5iWcrJmfmpnxBaQuq90bI8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/114643] [11/12/13/14 Regression] Call to a template function emitted but without the code for the template function itself Date: Mon, 08 Apr 2024 21:16:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also cf_known_to_fail short_desc target_milestone cf_known_to_work dependson 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=3D114643 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D67650, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D80916 Known to fail| |8.1.0 Summary|Call to a template function |[11/12/13/14 Regression] |emitted but without the |Call to a template function |code for the template |emitted but without the |function itself |code for the template | |function itself Target Milestone|--- |11.5 Known to work| |7.5.0 Depends on|62051, 93115 | --- Comment #4 from Andrew Pinski --- Actually it more closely related to PR 67650 (and PR 80916) but both of tho= se were fixed. Looks like even though the function is not static, we are think= ing we can still refer to it. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62051 [Bug 62051] [11/12/13/14 Regression] Undefined reference to vtable with -O2= and -fdevirtualize-speculatively https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93115 [Bug 93115] gcc fails to emit inline function on llvm-roc project: -O1 -fPIC -fdevirtualize -fdevirtualize-speculatively -fipa-cp -fipa-cp-clone -fvisibility-inlines-hidden=