« Return to Thread: [Bug c++/22369] New: C++ produces mis-matched types with pointers to member functions

[Bug c++/22369] New: C++ produces mis-matched types with pointers to member functions

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View in Thread

Testcase:
struct A { void f() { } };
struct B: public A { };

typedef void (B::*bp)();

int main()
{
  bp b = &A::f;
}

--
           Summary: C++ produces mis-matched types with pointers to member
                    functions
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 22368
             nThis:


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

 « Return to Thread: [Bug c++/22369] New: C++ produces mis-matched types with pointers to member functions