[LLVMbugs] [Bug 21062] New: MS ABI: Assertion in VFTableBuilder when compiling hierarchy with virtual inheritance

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 24 21:57:59 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140925/5e5173c2/attachment.html>


More information about the llvm-bugs mailing list