https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119251
uecker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uecker at gcc dot gnu.org --- Comment #2 from uecker at gcc dot gnu.org --- It is different because it can appear inside a macro argument, while an automatic variable can not. But I can agree that this would warn for many useful and unproblematic cases, and we also catch some of the problematic cases already using -Wdangling-pointer: https://godbolt.org/z/jerbPEf1q