[Bug c++/16240] [3.4/3.5 ABI Regression] g++ generates incorrect mangled name

uttamp at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 27 22:56:00 GMT 2005


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



More information about the Gcc-bugs mailing list