https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65307
--- Comment #12 from madars+gccbug at gmail dot com --- By the way, in g++ the bug can be triggered even with -O1 and without marking any functions inline (implicitly or explicitly): http://web.mit.edu/madars/Public/gcc-basic-arithmetic-bug-O1.cpp