This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9377: g++ 64bit calls wrong function -> Multi-inheritance: pointerto member function of the 2nd base calss points to wrong place
- From: axiong at ca dot ibm dot com
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 21 Jan 2003 22:26:00 -0000
- Subject: Re: c++/9377: g++ 64bit calls wrong function -> Multi-inheritance: pointerto member function of the 2nd base calss points to wrong place
- Reply-to: axiong at ca dot ibm dot com
The following reply was made to PR c++/9377; it has been noted by GNATS.
From: axiong@ca.ibm.com
To: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
Cc: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/9377: g++ 64bit calls wrong function -> Multi-inheritance: pointer
to member function of the 2nd base calss points to wrong place
Date: Tue, 21 Jan 2003 17:20:29 -0500
Hi, Wolfgang,
Thanks. For the code:
> d1ptr = (D*) new B2 ; //with the cast, we can also do this
> printf( "%s\n", (d1ptr->*select(1))() ) ;
The expected output from the "printf" is suppose to be:
---------------------------------------
B2::bar() is called
More information: both 32-bit g++ and 64-bit g++ (Linuc PPC) give correct
output for it, and also
xlC on AIX gives correct output for it (B2::bar() is called).
Regards,
Andrew