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

--- Comment #12 from Sam James <sjames at gcc dot gnu.org> ---
It still happens:
```
In member function ‘operator[]’,
    inlined from ‘operator[]’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:1599:20,
    inlined from ‘expand_vector_conversion’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:1765:39:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:911:23:
warning: iteration 536870912 invokes undefined behavior
[-Waggressive-loop-optimizations]
  911 |   return address ()[ix];
      |                       ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:
In function ‘expand_vector_conversion’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:1763:34:
note: within this loop
 1763 |       for (unsigned int i = 0; i < converts.length () - 1; i++)
      |                                  ^
In member function ‘operator[]’,
    inlined from ‘operator[]’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:1599:20,
    inlined from ‘expand_vector_conversion’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:1765:39:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/vec.h:911:23:
warning: iteration 536870912 invokes undefined behavior
[-Waggressive-loop-optimizations]
  911 |   return address ()[ix];
      |                       ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:
In function ‘expand_vector_conversion’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/tree-vect-generic.cc:1763:34:
note: within this loop
 1763 |       for (unsigned int i = 0; i < converts.length () - 1; i++)
      |                                  ^
```

Reply via email to