This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/35060] typeid(*).name() returns wrong values



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]