From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21747 invoked by alias); 7 Mar 2005 09:49:47 -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 21723 invoked by uid 48); 7 Mar 2005 09:49:42 -0000 Date: Mon, 07 Mar 2005 09:49:00 -0000 From: "heinlein at informatik dot uni-ulm dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20050307094941.20357.heinlein@informatik.uni-ulm.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg00870.txt.bz2 List-Id: The following code produces the assembler message: "Error: symbol `_ZN1XIXadL_Z1fvEEEC1Ev' is already defined". If the declaration of f in main is omitted, everything is fine. typedef void (*Func) (); template struct X { X () {} }; void f () {} X x; int main () { void f (); X x; } -- Summary: Multiply defined assembler symbols for template instantiations Product: gcc Version: 3.3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: heinlein at informatik dot uni-ulm dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20357