https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79594
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- It only warns once per loop and the actual stmt that is warned on depends on what gets processed first... So IMHO this works as expected (even if it looks inconsistent).