https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85744
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |WAITING Last reconfirmed| |2018-05-11 Resolution|INVALID |--- Ever confirmed|0 |1 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- You should have read https://gcc.gnu.org/bugs/ which explains what we need for a valid bug report, and would have done that before reporting it. You probably forgot to declare the function in the calling code so the compiler assumed it returned int, and only used the low 32 bits, which are all zero.