http://llvm.org/bugs/show_bug.cgi?id=16222
Bug ID: 16222
Summary: Assertion `!getType()->isBooleanType() && "unheralded
conversion to bool"' failed, on Windows
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
$ cat a.cc
void *x;
void f() {
reinterpret_cast<bool>(x);
}
$ clang -c -target i386-pc-win32 a.cc
clang: Expr.cpp:1455: void clang::CastExpr::CheckCastConsistency() const:
Assertion `!getType()->isBooleanType() && "unheralded conversion to bool"'
failed.
If I target Linux or Darwin instead, the assertion goes away.
--
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