> Actually, with the C++ compiler (xlC) on AIX, for both 32-bit and 64-bit
> compiling,  we can do:
>    PMF aPMF = (char *(D::*)()) &B2::bar ;
> And also,  with g++ for 32-bit compiling, we can do:
>    PMF aPMF = (char *(D::*)()) &B2::bar ;
> 
> The problem is only for g++ 64-bit compiling: we can not do it only for g++
> 64-bit compiling.

The fact that it works with one compiler and not with the other is of 
course no proof of either one being right :-) What I meant is that the 
question 32 vs 64 bit affects the layout of the virtual function table, so 
I wouldn't be surprised if an accidentially working program breaks when 
you change something like the layout of the vt.

That being said, I reopened the report to let others have a second look on 
things.

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth             email:            [EMAIL PROTECTED]
                              www: http://www.ticam.utexas.edu/~bangerth/


Reply via email to