This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (C++) Casting of a local pointer-to-member variable
- To: Jason Merrill <jason at redhat dot com>
- Subject: Re: (C++) Casting of a local pointer-to-member variable
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 02 Mar 2001 17:12:00 +0000
- CC: Chandra Chavva <cchavva at cygnus dot com>, gcc-patches at gcc dot gnu dot org
- Organization: Codesourcery LLC
- References: <Pine.SOL.3.91.1010228095029.3457B-100000@emperor.cygnus.com> <3A9FB4B3.4E0FDC5C@codesourcery.com> <u9g0gw86w1.fsf_-_@casey.cambridge.redhat.com>
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