This is the mail archive of the
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: <firstname.lastname@example.org> <4737AD61.email@example.com>
On Nov 11, 2007 5:33 PM, Mark Mitchell <firstname.lastname@example.org> 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
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.