[LLVMbugs] [Bug 6732] New: virtual inheritance generates undefined symbol in baseclass ctor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 28 16:58:05 PDT 2010


           Summary: virtual inheritance generates undefined symbol in
                    baseclass ctor
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: alexmac at adobe.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=4602)
 --> (http://llvm.org/bugs/attachment.cgi?id=4602)

The attached testcase generates the following error when compiled with clang
(it works with g++):

Undefined symbols:
  "__ZN9baseclass21somepurevirtualmethodEv", referenced from:
      __ZTC7derived0_9baseclass in cc-72AecD.o

The bug seems to be triggered by the use of virtual inheritance, but I'm not
familiar enough with clang to suggest anything more useful than that. This is a
cutdown testcase from a problem I'm having trying to compile the Tamarin VM
(specifically the DataIO class and its derivatives:

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