This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16240] [3.4/3.5 ABI Regression] g++ generates incorrect mangled name
- From: "uttamp at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2005 22:48:18 -0000
- Subject: [Bug c++/16240] [3.4/3.5 ABI Regression] g++ generates incorrect mangled name
- References: <20040628024250.16240.mckelvey@maskull.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From uttamp at us dot ibm dot com 2005-07-27 22:48 -------
(In reply to comment #7)
> Agreed. This is quoted by the C++ ABI:
>
> void foo(char); // mangled as _Z3fooc
> template<void (&)(char)> struct CB;
> // CB<foo> is mangled as "2CBIL_Z3foocEE"
>
> Given this:
>
> void foo(CB<foo>*);
>
> we generate:
>
> 00000000 T _Z3fooP2CBILZ3foocEE
but c++filt _Z3fooP2CBILZ3foocEE, just returns the same string. But if I add '_'
as _Z3fooP2CBIL_Z3foocEE and then do c++filt on that string, returns
foo(CB<foo(char)>*) as expected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16240