http://llvm.org/bugs/show_bug.cgi?id=21062
Bug ID: 21062
Summary: MS ABI: Assertion in VFTableBuilder when compiling
hierarchy with virtual inheritance
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
consider:
struct __declspec(dllexport) A {
virtual void f();
};
struct __declspec(dllexport) C : virtual A {
virtual void g();
};
struct __declspec(dllexport) D : virtual A {};
struct __declspec(dllexport) E : virtual D, virtual A, virtual C {};
compile with:
~/llvm/Release+Asserts/bin/clang++ -cc1 -x c++ different.cpp -triple
i686-pc-win32 -fms-compatibility -fno-rtti -emit-obj -w -o -
clang crashes with:
Assertion failed: Components.size() && "vftable can't be empty", file
D:\src\llvm\src\tools\clang\lib\AST\VTableBuilder.cpp, line 2549
MSVC does not reject their hierarchy
--
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