http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50606

--- Comment #2 from dcb <dcb314 at hotmail dot com> 2012-05-14 18:24:44 UTC ---
(In reply to comment #1)
> printf warnings are handled in the FE, so we would need constant-propagation 
> in
> the FE. Clang implements it, so I know it is possible. 

I think my bug report wasn't clearly worded. 
printf was merely an example function. 
I am interested in having gcc track when it knows
for certain that a pointer is NULL, so that it
can detect uses that won't work and emit a warning.

One use of a NULL pointer that won't work is to read
what it's pointing at.

> However, no current
> contributor to GCC has enough time and interest to implement it, so unless 
> some
> new contributors appear, don't expect this anytime soon.

Righto.

Reply via email to