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]

Re: Bug report


On Tue, 8 Sep 1998, Alexandrescu, Andrei wrote:

: 	std::cout << typeid(int).name() << endl;

: It prints only "i", not "int".

"i" happens to be the C++ mangled type for "int".

The typeinfo::name() function isn't required to hand back anything
user-readable.  The mangled names here are actually a boon in the cases
where template names get very big and recursive.

(Where's a squangle when you need one.... :)

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)



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