[LLVMbugs] [Bug 6598] New: duplicate symbol...

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 12 08:06:19 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6598

           Summary: duplicate symbol...
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Fons.Rademakers at cern.ch
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4495)
 --> (http://llvm.org/bugs/attachment.cgi?id=4495)
Source file exhibiting the problem

To see this behaviour do:

$ g++ -c aap1.cxx    (file fails with assert using clang++, bug 6565)
$ clang++ -c aap2.cxx
$ clang++ -dynamiclib -single_module -undefined dynamic_lookup -g -m64 -o
aap.so aap1.o aap2.o -ldl
ld: duplicate symbol __ZTS12TMatrixTLazyIfE in aap2.o and aap1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

recompile aap2.cxx with g++ and the issue disappears.

Cheers, Fons.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list