<html>
<head>
<base href="https://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 --- - Exceptions of type pointer to member whose class type is incomplete are not correctly handled"
href="https://llvm.org/bugs/show_bug.cgi?id=25898">25898</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Exceptions of type pointer to member whose class type is incomplete are not correctly handled
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++abi
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>consider:
#include <stdio.h>
struct S;
void f();
#ifndef DEF_S
void f() { throw (int S::*)nullptr; }
#else
struct S {};
int main() {
try {
f();
} catch (int S::*) {
printf("caught it!\n");
}
}
#endif
run with:
~/llvm/Debug+Asserts/bin/clang++ -c -stdlib=libc++ -std=c++11 d.cpp -o a.o
~/llvm/Debug+Asserts/bin/clang++ -c -stdlib=libc++ -DDEF_S d.cpp -o b.o
-std=c++11
~/llvm/Debug+Asserts/bin/clang++ a.o b.o -o t -stdlib=libc++
ISTM that libc++abi isn't comparing the NTBS when __incomplete_class_mask is
set in the __pointer_to_member_type_info.</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>