Possible member-function bug with egcs19990328

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:54:00 GMT 1999


>   a.f(a, A::f1);  //nok line 24
[...]
> I think that g++ should also accept line 24.

No, you have to write &A::f1 to denote a pointer-to-member. Please see
5.1/11 and 5.3.1 of the ISO C++ standard for details.

Regards,
Martin



More information about the Gcc-bugs mailing list