http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59557
--- Comment #5 from Chris Jefferson <chris at bubblescope dot net> --- Also tried with svn head, the code works (and passes using valgrind as well) caj@caj-laptop ~/Downloads> /gcc-svn/bin/g++ -v Using built-in specs. COLLECT_GCC=/gcc-svn/bin/g++ COLLECT_LTO_WRAPPER=/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-svn/configure --prefix=/gcc-svn --enable-languages=c,c++ Thread model: posix gcc version 4.9.0 20131219 (experimental) (GCC)