r257145 - in /branches/gcc-7-branch/libstdc++-v...
redi@gcc.gnu.org
redi@gcc.gnu.org
Mon Jan 29 13:58:00 GMT 2018
Author: redi
Date: Mon Jan 29 13:58:54 2018
New Revision: 257145
URL: https://gcc.gnu.org/viewcvs?rev=257145&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:
branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/any/modifiers/83658.cc
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/std/any
branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/any/misc/any_cast_neg.cc
More information about the Libstdc++-cvs
mailing list