------- Comment #7 from bkoz at gcc dot gnu dot org 2009-11-03 23:43 -------
Hey, hey! Cool. So, pre-patch I get this for the attached (get.ii.bz2) file: $bld/H-x86-gcc.20091103/bin/g++ -g -std=gnu++0x -Wall -Wfatal-errors get.ii In file included from /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:27:0: /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future: In member function typename std::unique_future<_Res>::_Mover::__rval_type std::unique_future<_Res>::get() [with _Res = int, typename std::unique_future<_Res>::_Mover::__rval_type = int]: /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:40:12: instantiated from here /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future:445:64: error: no matching function for call to std::__future_base::_Move_result<int, true>::_S_move(std::__future_base::_Result<int>&) compilation terminated due to -Wfatal-errors. Compared with post-patch: In file included from /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:27:0: /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future: In member function typename std::unique_future<_Res>::_Mover::__rval_type std::unique_future<_Res>::get() [with _Res = int, typename std::unique_future<_Res>::_Mover::__rval_type = int]: /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future:445:64: error: no matching function for call to std::__future_base::_Move_result<int, true>::_S_move(std::__future_base::_Result<int>&) /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:40:3: instantiated from here compilation terminated due to -Wfatal-errors. I still think that the full error first, then the context would be better: /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future:445:64: error: no matching function for call to std::__future_base::_Move_result<int, true>::_S_move(std::__future_base::_Result<int>&) In file included from /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:27:0: /mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/future: In member function typename std::unique_future<_Res>::_Mover::__rval_type std::unique_future<_Res>::get() [with _Res = int, typename std::unique_future<_Res>::_Mover::__rval_type = int]: /mnt/share/src/gcc/libstdc++-v3/testsuite/30_threads/unique_future/members/get.cc:40:12: instantiated from here compilation terminated due to -Wfatal-errors. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41884