[Bug libstdc++/69243] std::function summons a non-null pointer out of thin air

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 18 12:35:00 GMT 2016


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed at r232504

Fix construction of std::function from null pointer-to-member

        PR libstdc++/69243
        * 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.


More information about the Gcc-bugs mailing list