https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501
Michael Veksler <mickey.veksler at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mickey.veksler at gmail dot com --- Comment #84 from Michael Veksler <mickey.veksler at gmail dot com> --- Ping. At least -Wmaybe-uninitialized should emit warnings. This still happens on the trunk (gcc version 9.0.0 20180723 (experimental) (GCC-Explorer-Build)) : int f(int a) { int ret; if (a) { ret = 1; } return ret; } No warning, including with -Wmaybe-uninitialized. All other compilers warn about this (at least clang and Visual C++).