[llvm-bugs] [Bug 41727] [C++] ICE on use of destructors
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 18 06:28:35 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41727
Anastasia Stulova <anastasia.stulova at arm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #2 from Anastasia Stulova <anastasia.stulova at arm.com> ---
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.
--
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/20190718/31e504ee/attachment.html>
More information about the llvm-bugs
mailing list