http://llvm.org/bugs/show_bug.cgi?id=6732
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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=4602)
--> (http://llvm.org/bugs/attachment.cgi?id=4602)
testcase
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:
http://hg.mozilla.org/tamarin-redux/file/76c2c53af37e/shell/DataIO.h)
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs