https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87538
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Mon Oct 8 13:13:06 2018 New Revision: 264926 URL: https://gcc.gnu.org/viewcvs?rev=264926&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-7-branch/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc branches/gcc-7-branch/libstdc++-v3/testsuite/experimental/functional/87538.cc Modified: branches/gcc-7-branch/libstdc++-v3/ChangeLog branches/gcc-7-branch/libstdc++-v3/include/std/functional