https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102276
Kees Cook <kees at outflux dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kees at outflux dot net --- Comment #3 from Kees Cook <kees at outflux dot net> --- Clang shares this problem, though it also lacks a warning, making it a silent missing initialization: https://bugs.llvm.org/show_bug.cgi?id=44916 FWIW, the Linux kernel has already purged all these cases, in preparation of using -ftrivial-auto-var-init: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/?qt=grep&q=Distribute+switch+variables+for+initialization