https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89998
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Status|UNCONFIRMED |WAITING Last reconfirmed| |2019-04-08 Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- There's another dup for this. But I wonder why it works in GCC 8 (maybe it only works with -fno-checking after all). So, can you try if GCC 8 fails the same way with -fchecking?