r257141 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Mon Jan 29 12:33:00 GMT 2018
Author: redi
Date: Mon Jan 29 12:33:32 2018
New Revision: 257141
URL: https://gcc.gnu.org/viewcvs?rev=257141&root=gcc&view=rev
Log:
PR libstdc++/83658 fix exception-safety in std::any::emplace
PR libstdc++/83658
* include/std/any (any::__do_emplace): Only set _M_manager after
constructing the contained object.
* testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
* testsuite/20_util/any/modifiers/83658.cc: New test.
Added:
trunk/libstdc++-v3/testsuite/20_util/any/modifiers/83658.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/any
trunk/libstdc++-v3/testsuite/20_util/any/misc/any_cast_neg.cc
More information about the Libstdc++-cvs
mailing list