Re: coercion warnings for NULL in C front end

2006-07-06 Thread Gabriel Dos Reis
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: [...] | int main() | { | int i = NULL; // { dg-warning "" } converting NULL to non-pointer type In many C implementations, NULL is defined as #define NULL ((void *) 0) which renders the above initialization ill-formed -- not just a warnin

coercion warnings for NULL in C front end

2006-07-06 Thread Manuel López-Ibáñez
Dear all, Once the implementation of warnings for coercions that may change a value in the simplest cases is roughly completed [1], I am starting to consider other possible cases. As an example, the C++ front end given the Wconversion option currently emits a warning for: int i = NULL; Would it