This is the mail archive of the gcc-patches@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]

Re: (C++) Casting of a local pointer-to-member variable



I was worried about what it might do to something like,
struct A
{ 
  static void F ();
  static void F (int);
  void F (short);
  void F (long);
}; 

int main ()
{
  void (*p) () = &(A::F);
  void (A::*p1) () = &(A::F);
} 

were the p1's init is bogus, but p's is ok.  I see Chandra's patch still
DTRT here.

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org


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