[Bug tree-optimization/108416] False negative -Wdangling-pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108416 --- Comment #3 from Richard Biener --- Same behavior with the following so this does seem to be by design int *p; void foo (); void bar () { int i; p = &i; //foo (); }
[Bug tree-optimization/108416] False negative -Wdangling-pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108416 Richard Biener changed: What|Removed |Added Summary|False positive |False negative |-Wda