[Bug c++/95385] GCC stop detect UBs after a divide by zero in for statement

2020-05-29 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95385 --- Comment #3 from Haoxin Tu --- (In reply to Richard Biener from comment #2) > 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 trap

[Bug c++/95385] GCC stop detect UBs after a divide by zero in for statement

2020-05-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95385 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/95385] GCC stop detect UBs after a divide by zero in for statement

2020-05-28 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95385 Martin Liška changed: What|Removed |Added Last reconfirmed||2020-05-28 Status|UNCONFIRMED