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

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon Jun 28 17:45:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-06-28 17:40 -------
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

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|                            |ABI, wrong-code


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



More information about the Gcc-bugs mailing list