https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90541
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |amonakov at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> --- Documentation for -Wuninitialized points out that you need -Winit-self to catch such patterns (and you do get a warning in that case). Seems to work exactly as documented.