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 <jwak...@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