This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: glossary for egcs - request for contributions
- To: Joe Buck <jbuck at Synopsys dot COM>
- Subject: Re: glossary for egcs - request for contributions
- From: Jason Merrill <jason at cygnus dot com>
- Date: 29 Apr 1999 21:44:34 -0700
- Cc: oliva at dcc dot unicamp dot br (Alexandre Oliva), espie at quatramaran dot ens dot fr, egcs at egcs dot cygnus dot com
- References: <199904291024.DAA19602@atrus.synopsys.com>
>>>>> Joe Buck <jbuck@Synopsys.COM> writes:
>> > typedef int (*PFDerived)(Derived&);
>> > int bfunc(Base&);
>> > PFDerived p = &bfunc;
>>
>> > this is legal
>>
>> No way! :-)
> Alexandre is right, I was wrong, the C++ language is wrong. (That is,
> they should have permitted contravariance for regular function pointers,
> not just member function pointers).
But then how would you deal with MI? It works for PMFs because they aren't
just pointers.
Jason