<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Assertion failure on dereferencing member pointer using virtual inheritance with an incomplete class type"
href="http://llvm.org/bugs/show_bug.cgi?id=18583">18583</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure on dereferencing member pointer using virtual inheritance with an incomplete class type
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rnk@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>david.majnemer@gmail.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>