This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41884] diagnostics: error vs. context
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2009 23:43:05 -0000
- Subject: [Bug c++/41884] diagnostics: error vs. context
- References: <bug-41884-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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