This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/8171: Comparing pointer-to-member-functions of derived classes
- From: "Ollie Wild" <aaw at google dot com>
- To: "Mark Mitchell" <mark at codesourcery dot com>
- Cc: "Volker Reichelt" <v dot reichelt at netcologne dot de>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Nov 2007 02:53:06 -0800
- Subject: Re: [PATCH] Fix PR c++/8171: Comparing pointer-to-member-functions of derived classes
- References: <tkrat.9fc3afb2b754eb46@netcologne.de> <4737AD61.9020702@codesourcery.com>
On Nov 11, 2007 5:33 PM, Mark Mitchell <mark@codesourcery.com> wrote:
>
> How do we get a METHOD_TYPE down into comptypes? Did we start with a
> pointer-to-member function type, and then pull the METHOD_TYPE out of that?
I was digging through bugzilla and noticed that I've also submitted a
patch that fixes the same problem (See
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg01544.html.).
My patch is quite a bit simpler than this one, and it passes both of
this patch's tests (except the error generated on line 18 of
ptrmemfun2.C reads as "error: comparison between distinct
pointer-to-member types 'void (B::*)()' and 'void (C::*)()' lacks a
cast"). I'll let Mark decide which fix he thinks is preferable.
Sorry for stepping on toes here.
Ollie