From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6068 invoked by alias); 27 Jan 2004 10:57:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6060 invoked by uid 48); 27 Jan 2004 10:57:57 -0000 Date: Tue, 27 Jan 2004 10:57:00 -0000 From: "mattyt-bugzilla at tpg dot com dot au" To: gcc-bugs@gcc.gnu.org Message-ID: <20040127105755.13883.mattyt-bugzilla@tpg.com.au> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13883] New: Assembler messages: symbol is already defined X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03382.txt.bz2 List-Id: The following code: struct A {}; struct B; template < class TP > struct X : virtual A { template < class TP2 > X (TP2* ptr) {} template < class TP2 > X (const X ) {} }; struct Y : X { Y (A* a) : X(a) {} }; void func1 (X ); void func2 () { A a; Y y(&a); func1(X< A >(&a)); } produces these messages: /tmp/ccdER9OM.s: Assembler messages: /tmp/ccdER9OM.s:125: Error: symbol `_ZN1XI1BEC2I1AEEv' is already defined on Linux x86, with G++-3.4 branch from a day or two ago. I'm not sure if the "const X " is well formed (it doesn't seem to work in the non-template form), but the original code wasn't like that, that's a figment of the automatic testcase reduction I did - so perhaps there's two bugs here. -- Summary: Assembler messages: symbol is already defined Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mattyt-bugzilla at tpg dot com dot au CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13883