<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:anastasia.stulova@arm.com" title="Anastasia Stulova <anastasia.stulova@arm.com>"> <span class="fn">Anastasia Stulova</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [C++] ICE on use of destructors"
href="https://bugs.llvm.org/show_bug.cgi?id=41727">bug 41727</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [C++] ICE on use of destructors"
href="https://bugs.llvm.org/show_bug.cgi?id=41727#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [C++] ICE on use of destructors"
href="https://bugs.llvm.org/show_bug.cgi?id=41727">bug 41727</a>
from <span class="vcard"><a class="email" href="mailto:anastasia.stulova@arm.com" title="Anastasia Stulova <anastasia.stulova@arm.com>"> <span class="fn">Anastasia Stulova</span></a>
</span></b>
<pre>The following test case still fails to compile with an ICE:
struct MyType {
MyType(int i) : i(i) {}
int i;
~MyType() {}
};
__kernel void foo(){
MyType m(0);
}
clang: /data/llvm/trunk/lib/IR/Instructions.cpp:2737: static llvm::CastInst*
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) &&
"Invalid cast!"' failed.</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>