This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug report
- To: "Alexandrescu, Andrei" <AlexandrescuA at MICROMODELING dot COM>
- Subject: Re: Bug report
- From: Todd Vierling <tv at pobox dot com>
- Date: Wed, 9 Sep 1998 10:18:54 -0400 (EDT)
- cc: "'egcs-bugs at cygnus dot com'" <egcs-bugs at cygnus dot com>
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)