https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83658

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
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

Reply via email to