From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1077 invoked by alias); 12 Feb 2003 23:46:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1058 invoked by uid 71); 12 Feb 2003 23:46:00 -0000 Resent-Date: 12 Feb 2003 23:46:00 -0000 Resent-Message-ID: <20030212234600.1057.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, janis187@us.ibm.com Received: (qmail 29742 invoked by uid 48); 12 Feb 2003 23:37:13 -0000 Message-Id: <20030212233713.29741.qmail@sources.redhat.com> Date: Wed, 12 Feb 2003 23:46:00 -0000 From: janis187@us.ibm.com Reply-To: janis187@us.ibm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/9681: powerpc64 -frepo fails to instantiate some templates X-SW-Source: 2003-02/txt/msg00545.txt.bz2 List-Id: >Number: 9681 >Category: target >Synopsis: powerpc64 -frepo fails to instantiate some templates >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 12 23:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Janis Johnson >Release: 3.3 20030210 (prerelease) >Organization: >Environment: powerpc64-linux; SuSE SLES8 >Description: Five tests in g++.old-deja/g++.pt (instantiate[46].C and repo[124].C) fail because some templates are not instantiated with -frepo. This affects powerpc64-linux, both cross compilers and native 64-bit compilers, for mainline, 3.3-branch, and 3.2-branch. Here's what happens with test repo1.C: % g++ -c -frepo repo1.C % g++ -frepo repo1.o repo1.o: In function `.main': repo1.o(.text+0x18): undefined reference to `.void g(int)' collect2: ld returned 1 exit status That test: template struct A { virtual ~A () { } }; template void g (T t) { } template class A; int main () { g (42); } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: