http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923
--- Comment #4 from Fredrik Hederstierna
2012-04-10 12:52:36 UTC ---
Maybe it have advantages to have a "pointer-deref" analysis pass rather than a
"point-to" analysis pass. Then GCC could warn only if the pointer is being
dereferenced for real,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923
Richard Guenther changed:
What|Removed |Added
Keywords||diagnostic
Status|UNCONFIR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923
--- Comment #2 from Jonathan Wakely 2012-04-10
08:03:13 UTC ---
See also PR 49974 requesting the same thing for C++
and PR 51270 and PR 44859 are similar but for temporaries
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923
--- Comment #1 from Andrew Pinski 2012-04-10
07:59:40 UTC ---
These all need to have some kind of flow analysis going on (the return one is
the only one which does not which is why we warn already).