[LLVMbugs] [Bug 16222] New: Assertion `!getType()->isBooleanType() && "unheralded conversion to bool"' failed, on Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 4 08:07:21 PDT 2013


            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: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat a.cc
void *x;
void f() {

$ clang -c -target i386-pc-win32 a.cc

clang: Expr.cpp:1455: void clang::CastExpr::CheckCastConsistency() const:
Assertion `!getType()->isBooleanType() && "unheralded conversion to bool"'

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130604/d152964c/attachment.html>

More information about the llvm-bugs mailing list