This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Asgn of ptr to member func ignores const
- To: robozapp at xmission dot com
- Subject: Re: Asgn of ptr to member func ignores const
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 24 Feb 2000 22:46:20 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <19990319000702.A19415@xmission.xmission.com>
> So, I've got this code where I'm assigning a non-const member function
> to a pointer to a const member function, and egcs doesn't say anything
> about it.
Thanks for your bug report. The mainline compiler (2.96 20000223
(experimental)) says
a.cc: In function `void some_func ()':
a.cc:9: cannot convert `void (SomeClass::*) ()' to `void (SomeClass::*)
a.cc:9: () const' in assignment
so it appears the bug has been fixed.
Regards,
Martin