[Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 8 12:55:00 GMT 2018


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Oct  8 12:54:41 2018
New Revision: 264924

URL: https://gcc.gnu.org/viewcvs?rev=264924&root=gcc&view=rev
Log:
PR libstdc++/87538 fix std::not_fn exception specifications

Backport from mainline
2018-10-08  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/87538
        * include/std/functional (_Not_fn::operator()): Check value of
        __is_nothrow_invocable as well.
        * testsuite/20_util/function_objects/not_fn/87538.cc: New test.
        * testsuite/experimental/functional/87538.cc: New test.

Added:
   
branches/gcc-8-branch/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc
   
branches/gcc-8-branch/libstdc++-v3/testsuite/experimental/functional/87538.cc
Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/std/functional


More information about the Gcc-bugs mailing list