https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78007
--- Comment #1 from Yuri Rumyantsev <ysrumyan at gmail dot com> --- Created attachment 39821 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39821&action=edit test-case to reproduce It is sufficient to compiler it with -Ofast option on x86 platform.