This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13316] g++ does not follow mangling ABI for pointer to qualified member function
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2004 22:32:42 -0000
- Subject: [Bug c++/13316] g++ does not follow mangling ABI for pointer to qualified member function
- References: <20031205150837.13316.ian@airs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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