(C++) Casting of a local pointer-to-member variable
Nathan Sidwell
nathan@codesourcery.com
Fri Mar 2 09:08:00 GMT 2001
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
More information about the Gcc-patches
mailing list