id summary reporter owner description type status milestone component version severity resolution keywords cc 3844 boost.thread doesn't work with gcc-4.5 in c++0x mode Sebastian Mingramm Anthony Williams "{{{ $ cat test.cpp #include int main() {} $ g++ -v }}} Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/4.5.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ./configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-lto Thread model: posix gcc version 4.5.0 20100115 (experimental) (GCC) {{{ $ g++ test.cpp -std=c++0x }}} In file included from /usr/include/boost/thread/thread.hpp:22:0, from /usr/include/boost/thread.hpp:13, from test.cpp:1: /usr/include/boost/thread/detail/thread.hpp: In function 'boost::thread&& boost::move(boost::thread&&)': /usr/include/boost/thread/detail/thread.hpp:349:16: error: invalid initialization of reference of type 'boost::thread&&' from expression of type 'boost::thread' In file included from /usr/include/boost/thread/detail/thread_heap_alloc.hpp:17:0, from /usr/include/boost/thread/detail/thread.hpp:13, from /usr/include/boost/thread/thread.hpp:22, from /usr/include/boost/thread.hpp:13, from test.cpp:1: /usr/include/boost/thread/pthread/thread_heap_alloc.hpp: In function 'T* boost::detail::heap_new(A1&&) [with T = boost::detail::thread_data, A1 = void (*&)()]': /usr/include/boost/thread/detail/thread.hpp:130:95: instantiated from here /usr/include/boost/thread/pthread/thread_heap_alloc.hpp:24:47: error: cannot bind 'void (*)()' lvalue to 'void (*&&)()' /usr/include/boost/thread/detail/thread.hpp:43:13: error: initializing argument 1 of 'boost::detail::thread_data::thread_data(F&&) [with F = void (*)()]' In file included from /usr/include/boost/thread/pthread/mutex.hpp:11:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/include/boost/thread.hpp:13, from test.cpp:1: /usr/include/boost/thread/locks.hpp: In member function 'boost::unique_lock& boost::unique_lock::operator=(boost::unique_lock&&) [with Mutex = boost::mutex, boost::unique_lock = boost::unique_lock]': /usr/include/boost/thread/future.hpp:414:91: instantiated from here /usr/include/boost/thread/locks.hpp:269:13: error: cannot bind 'boost::unique_lock' lvalue to 'boost::unique_lock&&' /usr/include/boost/thread/locks.hpp:279:14: error: initializing argument 1 of 'void boost::unique_lock::swap(boost::unique_lock&&) [with Mutex = boost::mutex, boost::unique_lock = boost::unique_lock]' " Patches closed Boost 1.42.0 thread Boost 1.41.0 Problem fixed