Internal compiler error 40: pointer to member function syntax

Phil Austin phil@geog.ubc.ca
Thu Jan 8 12:41:00 GMT 1998


>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

    >> useMethod(y,ts,dt);

    >> works in g++ 2.7.2.2 but not with egcs.

    Alexandre> The correct syntax is: this->*useMethod(y,ts,dt);

Thanks, that works once I add the parentheses:

(this->*useMethod)(y,ts,dt);


Regards, Phil




More information about the Gcc-bugs mailing list