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