https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63736
--- Comment #2 from Leandro Santiago <leandrosansilva at gmail dot com> --- I tested the same program again with gcc from master branch from today and it worked as expected, generated a runnable executable. Is it possible to backport whichever the solution is to gcc 4.8? [1] COLLECT_GCC=/home/tenchi/programs/gcc/bin/g++ COLLECT_LTO_WRAPPER=/home/tenchi/programs/gcc/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/home/tenchi/programs/gcc --enable-debug --enable-lto Thread model: posix gcc version 5.0.0 20141104 (experimental) (GCC)