[Bug tree-optimization/93359] Miscompile (loop check omitted) in function with missing return statement

2020-01-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93359 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/93359] Miscompile (loop check omitted) in function with missing return statement

2020-01-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93359 --- Comment #1 from Andrew Pinski --- In c++, it is undefined behavior if you fall through to the end of a function without a return if the type is non void.