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]
Other format: [Raw text]

Re: [PATCH] Fix PR c++/8171: Comparing pointer-to-member-functions of derived classes


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


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