public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations
@ 2005-03-07  9:49 heinlein at informatik dot uni-ulm dot de
  2005-03-07 14:30 ` [Bug c++/20357] " lerdsuwa at gcc dot gnu dot org
  2005-03-07 15:11 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: heinlein at informatik dot uni-ulm dot de @ 2005-03-07  9:49 UTC (permalink / raw)
  To: gcc-bugs

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 <Func f> 
struct X { X () {} }; 
void f () {} 
X<f> x; 
int main () { 
  void f (); 
  X<f> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-20357-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2024-03-25  4:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07  9:49 [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations heinlein at informatik dot uni-ulm dot de
2005-03-07 14:30 ` [Bug c++/20357] " lerdsuwa at gcc dot gnu dot org
2005-03-07 15:11 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20357-4@http.gcc.gnu.org/bugzilla/>
2024-03-25  4:06 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).