https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82302 --- Comment #3 from krzysio.kurek at wp dot pl --- This happens only on GCC7 with -flto activated. clang-6, GCC6 and GCC5 with either flag enabled or disabled compile code that runs fine. I don't know why this error is occurring for you Martin.