[Bug libstdc++/55728] std::bad_function_call has misleading what() result
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 7 00:50:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55728
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-07 00:50:25 UTC ---
Author: redi
Date: Mon Jan 7 00:50:16 2013
New Revision: 194958
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194958
Log:
PR libstdc++/55847
* src/c++11/shared_ptr.cc (bad_weak_ptr::what()): Correct string.
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Verify
string.
PR libstdc++/55728
* include/std/functional (bad_function_call::what()): Declare.
* src/c++11/functional.cc (bad_function_call::what()): Define.
* config/abi/pre/gnu.ver (bad_function_call::what()): Export.
* testsuite/20_util/bad_function_call/what.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/bad_function_call/what.cc
- copied, changed from r194957,
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/config/abi/pre/gnu.ver
trunk/libstdc++-v3/include/std/functional
trunk/libstdc++-v3/src/c++11/functional.cc
trunk/libstdc++-v3/src/c++11/shared_ptr.cc
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc
More information about the Gcc-bugs
mailing list