[LLVMbugs] [Bug 9558] New: "Invalid constantexpr bitcast!" assert with reinterpret_cast
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 25 14:20:05 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9558
Summary: "Invalid constantexpr bitcast!" assert with
reinterpret_cast
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
float y = reinterpret_cast<const float&>("asd");
Crashes with assert:
clang: Constants.cpp:1415: static llvm::Constant*
llvm::ConstantExpr::getBitCast(llvm::Constant*, const llvm::Type*): Assertion
`CastInst::castIsValid(Instruction::BitCast, C, DstTy) && "Invalid constantexpr
bitcast!"' failed.
Issue found by inspection.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list