This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9377: g++ 64bit calls wrong function -> Multi-inheritance: pointerto member function of the 2nd base calss points to wrong place


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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]