c++/9377: g++ 64bit calls wrong function -> Multi-inheritance: pointer to member function of the 2nd base calss points to wrong place
bangerth@dealii.org
bangerth@dealii.org
Tue Jan 21 16:26:00 GMT 2003
Synopsis: g++ 64bit calls wrong function -> Multi-inheritance: pointer to member function of the 2nd base calss points to wrong place
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 21 16:20:51 2003
State-Changed-Why:
You can't do this:
PMF aPMF = (char *(D::*)()) &B2::bar ;
If you want to call B2::bar with a pointer to a D object,
then you will have to take its address as
&D::bar
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9377
More information about the Gcc-bugs
mailing list