https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309
ecloud <s at ecloud dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |s at ecloud dot org --- Comment #5 from ecloud <s at ecloud dot org> --- I can also reproduce this on Arch linux. Yes it still fails if I change the Makefile to set LINK = g++ -fuse-ld=gold However changing CXX = g++ -O2 makes it pass. $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/gcc-multilib/src/gcc-4.9-20150204/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-multilib --disable-werror --enable-checking=release Thread model: posix gcc version 4.9.2 20150204 (prerelease) (GCC)