https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63418
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Generally, ensuring that -Wmaybe-uninitialized has no false positives is NP-complete problem. We have since 2010 in tree-ssa-uninit.c an attempt to handle the most common cases (predicate aware uninit), which has been improved over time. I guess you can look at *.uninit pass verbose dumps (-fdump-tree-uninit-details) to see why it failed in this case.