https://llvm.org/bugs/show_bug.cgi?id=23261
Bug ID: 23261
Summary: assertion failure emitting lvalue CK_AddressSpaceCast
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This:
int __attribute__((address_space(1))) a = 0;
void f() { int &b = reinterpret_cast<int&>(a); }
results in:
clang-3.6: IR/Constants.cpp:1571: static llvm::Constant
*llvm::ConstantExpr::getCast(unsigned int, llvm::Constant *, llvm::Type *,
bool): Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr
cast!"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs