C++11 Standard says follow: 20.7.2.1 p2 bad_weak_ptr() noexcept; Postconditions: what() returns "bad_weak_ptr" But, libstdc++'s bad_weak_ptr::what() return "std::bad_weak_ptr". "std::" is unnecessary.
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
fixed for 4.8