https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95385
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- We likely eliminate the dead 0/0 and 0/b instructions but fail for the one in the loop at -O0. As soon as the actual instruction is carried out the program traps and obviously further runtime messages are no longer emitted. There's no bug here.