[LLVMbugs] [Bug 23261] New: assertion failure emitting lvalue CK_AddressSpaceCast
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 16 19:23:20 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150417/9447eab1/attachment.html>
More information about the llvm-bugs
mailing list