[patch] Fix dangling pointer in future_error::what()

Jonathan Wakely jwakely@redhat.com
Fri Mar 6 12:31:00 GMT 2015


This bug didn't show up with COW strings, but is a real problem with
the new std::string. The fix is to call error_code::message() early
and store the result in the logic_error base class during
construction.

Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150306/efaec2aa/attachment.bin>


More information about the Libstdc++ mailing list