https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90367

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #8)
> This looks very similar to bug 87072.  The C test case below is diagnosed by
> GCC 9, 8, and 7.
> 
> $ cat a.c && gcc -O3 -S -Wall -Wextra -fdump-tree-vrp=/dev/stdout a.c

This testcase is bogus and the warning is correct.
In the original testcase, the problem is the iterator i has its address taken
which causes GCC to lose the bounds of the loop information.

Reply via email to