This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Renaming Symbols cout, cerr, cin, clog
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Stefan Vogel" <Stefan dot Vogel at clarity-ag dot net>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: 29 May 2002 08:45:52 -0300
- Subject: Re: Renaming Symbols cout, cerr, cin, clog
- Organization: GCC Team, Red Hat
- References: <001a01c206f6$1fb19b50$ee00a8c0@venus>
On May 29, 2002, "Stefan Vogel" <Stefan.Vogel@clarity-ag.net> wrote:
> So is it possible to rename those symbols in future releases of the
> libio!
Definitely not. The C++ ABI doesn't say anything about different
mangling for say a member-function named cin of class foo, but after
your patch, such a member function will be mangled differently
depending on whether iostream.h is #included before or after the
definition of the class, in each class body. So it's not as harmless
as you may have made it sound.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer