https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99756
Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |aldyh at gcc dot gnu.org Resolution|--- |FIXED --- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Fixed in trunk by one of the various improvements to the jump threader: abulafia:~/bld/t/gcc$ ./cc1 a.c -O2 -Wall -quiet abulafia:~/bld/t/gcc$ ./cc1 a.c -O2 -Wall -quiet -fno-thread-jumps a.c: In function ‘f’: a.c:10:10: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized] 10 | a[x] = 0; // { dg-bogus "Wmaybe-uninitialized" } | ~~~~~^~~ a.c:5:7: note: ‘x’ was declared here 5 | int x; | ^ abulafia:~/bld/t/gcc$