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: typeinfo *^%*&^%*&%


> To: David Chamont <chamont@polhp3.in2p3.fr>
> Cc: egcs-bugs@cygnus.com
> From: Alexandre Oliva <oliva@dcc.unicamp.br>
> Date: 11 Jun 1998 21:28:51 -0300

> The result of typeinfo::name() is implementation-defined, don't expect
> to get the same result when you use different compilers, or different
> versions of the same compiler.  G++ and egcs have chosen to return the
> string produced by its own symbol name mangling mechanism.  `i' refers
> to the integer type, and `1A' refer to a class name of length `1',
> namely, `A'.

Long term, we may want to return the demangled version of the type
name for name().  We choose what we do now, because it was handle,
easy to code, had the proper uniqueness guarantees and completely
reliable and well understood.


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