This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35060] typeid(*).name() returns wrong values
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2008 15:01:41 -0000
- Subject: [Bug c++/35060] typeid(*).name() returns wrong values
- References: <bug-35060-15391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-02-03 15:01 -------
There is no name-mangling in the 3rd case, only the type is mangled which is
independent of linkage. As for the length, all names are mangled by prefixing
with their length. For example type_info::name is mangled as
_ZNKSt9type_info4nameEv where the lengths are required to get to the next
"token"
in the mangling.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35060