<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - @catch (Class) causes assertion failure"
href="https://bugs.llvm.org/show_bug.cgi?id=37384">37384</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>@catch (Class) causes assertion failure
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</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>smeenai@fb.com
</td>
</tr>
<tr>
<th>CC</th>
<td>compnerd@compnerd.org, llvm-bugs@lists.llvm.org, rjmccall@apple.com
</td>
</tr></table>
<p>
<div>
<pre>% cat /tmp/catch.m
void f(void);
void g() {
@try {
f();
} @catch (Class) {
}
}
% clang -cc1 -triple arm64-apple-ios11.0.0 -fexceptions -fobjc-exceptions
-emit-llvm /tmp/catch.m
clang: ../../tools/clang/lib/CodeGen/CGObjCMac.cpp:7476: virtual llvm::Constant
*(anonymous namespace)::CGObjCNonFragileABIMac::GetEHType(clang::QualType):
Assertion `IT && "Invalid @catch type."' failed.
Does it make sense to catch a Class type? If not, it should be rejected in
Sema, right?</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>