https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110020
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is clearly invalid testcase.
It initializes the w array with i == 0, then w goes out of scope, then it
reappears uninitialized in the scope with i == 1 and the uninitialized value is
used.
You'd need to move the w declaration before the outer loop to make it well
defined.