This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20734] New: rejects valid pointer to member


error: cannot convert 'int*' to 'int A::*' for argument '1' to 'void blah(int A::*)'


struct A;
void blah(int A::*);
struct A{
  int a;
};
template<typename T> //remove this line to make it work
void hoho(){
  blah(&A::a);
}


compiles on gcc up to early 4.0, icc and comeau

-- 
           Summary: rejects valid pointer to member
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sstrasser at systemhaus-gruppe dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]