From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19681 invoked by alias); 14 Dec 2001 17:16:05 -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 19636 invoked by uid 71); 14 Dec 2001 17:16:03 -0000 Resent-Date: 14 Dec 2001 17:16:03 -0000 Resent-Message-ID: <20011214171603.19635.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, jeffaxelrodjunk@email.com Received:(qmail 15241 invoked by uid 61); 14 Dec 2001 17:09:42 -0000 Message-Id:<20011214170942.15240.qmail@sources.redhat.com> Date: Fri, 14 Dec 2001 09:16:00 -0000 From: jeffaxelrodjunk@email.com Reply-To: jeffaxelrodjunk@email.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.2 (1.1.1.1.2.21) Subject: c++/5118: c4x-g++ Fails on Templates X-SW-Source: 2001-12/txt/msg00831.txt.bz2 List-Id: >Number: 5118 >Category: c++ >Synopsis: c4x-g++ Fails on Templates >Confidential: no >Severity: critical >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Dec 14 09:16:02 PST 2001 >Closed-Date: >Last-Modified: >Originator: Jeff Axelrod >Release: 3.0.2 >Organization: >Environment: cygwin >Description: To: Jake Dawley-Carr/DIL/Teradyne@Teradyne cc: Subject: GCC Bug If you try to compile the following code fragment that uses templates, it generates bad assembly code if the -gcoff switch is used. What's weird is if I get rid of the virtual keyword on the destructor, it assembles fine. Any ideas? FAILS: c4x-g++ -c -gcoff test.cc PASSES: c4x-g++ -c test.cc prompt> c4x-g++ -c -g test2.cc /tmp/ccMHRRGe.s: Assembler messages: /tmp/ccMHRRGe.s:11: Error: Rest of line ignored. First ignored character is `<'. prompt> Offending assembly line: .sdef __vptr$d<5> test.cc: template class d { public: d() { myInt = Count; } int myInt; virtual ~d() {} }; volatile d<5> instD; >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: