Unexpected results from _Bool cast

Hey list,

The following program outputs '0' when compiled on my system with `clang a.c`:

    #include <stdio.h>
    int main(int argc, const char *argv)
        printf("%d\n", (_Bool)((void *)0xCAFEBABE));
        return 0;

Could someone confirm this is a bug? (Section of C99 seems to
suggest that it is.) I suspect I need to upgrade Xcode/clang/llvm, but
I thought I'd check before I attempt to download that monstrosity on
my wee connection.




Yes, this is a bug. This code gives the expected result (1) for me under the current svn HEAD.


Yep, that would be a bug to print 0. It works for me with mainline though,