[Bug c++/55908] Problem binding a const member function to a const object

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 8 13:34:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55908

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-01-08
         AssignedTo|unassigned at gcc dot       |redi at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-08 13:33:56 UTC ---
Reduced:

#include <functional>

struct foo
{
        void f(int) const
        {
        }

        void g() const
        {
            auto mf = std::mem_fn(&foo::f);
            mf(this, 1);
        }
};



More information about the Gcc-bugs mailing list