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

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Sun Jan 11 22:32:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list