Bug report

Todd Vierling tv@pobox.com
Wed Sep 9 07:50:00 GMT 1998


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)




More information about the Gcc-bugs mailing list