I see that gcc-7 also has the same issue. I'm starting to wonder if this code is flawed, but I don't see the problem. I would have thought "-O3" is pretty safe and sane. I could imagine -O5 doing something like this.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1909838 Title: gcc -O3 produces invalid code To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1909838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs