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 Regression] g++ generates incorrect mangled name
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jun 2004 17:40:12 -0000
- Subject: [Bug c++/16240] [3.4/3.5 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 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