This is the mail archive of the gcc-bugs@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]

[Bug c++/13316] g++ does not follow mangling ABI for pointer to qualified member function


------- Additional Comments From giovannibajo at libero dot it  2004-01-11 22:32 -------
Ian,

I agree with your reading of the ABI. Let's pretend for a moment we want to fix 
this one: I made a patch which makes GCC emits this:

_Z1rM1GFivEMS_KS0_S_M1HFivES1_4whatIKS_E5what2IS8_ES3_

It's still not 100% perfect because there is a "FivE" occurrence which is not 
substitued by S0_, but it looks better. The output of the demangler is:

r(int (G::*)(), int ()() const G::*, G, int (H::*)(), int (G::*)(), what<G 
const>, what2<G const>, int ()() const G::*)

which looks wrong. It seems that not even the demangler is ready to handle 
substitutions in that context.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13316


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