https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Sat Aug 6 12:21:42 2016 New Revision: 239205 URL: https://gcc.gnu.org/viewcvs?rev=239205&root=gcc&view=rev Log: Fix construction of std::function from null pointer-to-member PR libstdc++/69293 * include/std/functional (_Function_base::_M_not_empty_function): Change overloads for pointers to take arguments by value. * testsuite/20_util/function/cons/57465.cc: Add tests for pointer-to-member cases. Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/std/functional branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/function/cons/57465.cc