[cfe-commits] r41557 - /cfe/trunk/AST/Expr.cpp
Neil Booth
neil at daikokuya.co.uk
Tue Aug 28 15:34:28 PDT 2007
Steve Naroff wrote:-
> Author: snaroff
> Date: Tue Aug 28 16:20:34 2007
> New Revision: 41557
>
> URL: http://llvm.org/viewvc/llvm-project?rev=41557&view=rev
> Log:
> Teach Expr::isNullPointerConstant() about ImplicitCastExpr's.
>
> This fixes the following (recent) regression noticed by Keith Bauer (thanks!).
>
> void func(void *a);
>
> main() {
> void *p;
> p = 0;
> func(0);
> }
>
> ..which now works as you would expect.
Hi Steve,
In a similar vein though
const char *f (void) { return 0; }
fails to compile.
/tmp/bug.c:1:25: error: incompatible type returning 'int', expected
'char const *'
const char *f7 (void) { return 0; }
^ ~
Neil.
More information about the cfe-commits
mailing list