[LLVMbugs] [Bug 18583] New: Assertion failure on dereferencing member pointer using virtual inheritance with an incomplete class type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 22 11:05:12 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18583
Bug ID: 18583
Summary: Assertion failure on dereferencing member pointer
using virtual inheritance with an incomplete class
type
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: david.majnemer at gmail.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat t.cpp
struct __virtual_inheritance A;
int foo(A *a, int A::*mp) {
return a->*mp;
}
$ clang-cl -c t.cpp
Assertion failed: DefinitionData && "queried property of class with no
definition", file ..\tools\clang\include\clang/AST/DeclCXX.h, line 562
clang-cl.exe: error: clang frontend command failed with exit code 3 (use -v to
see invocation)
Amusingly, this also kills MSVC:
$ cl -c t.cpp -nologo
t.cpp
t.cpp(4) : fatal error C1001: An internal error has occurred in the compiler.
We should require a complete class type in MS ABI mode when dereferencing a
member pointer.
--
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/20140122/8870a895/attachment.html>
More information about the llvm-bugs
mailing list