This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18077] [3.3/3.4/4.0 Regression] Members of anonymous namespaces get name mangled with first global variable instead of file name
- From: "fafa at freesurf dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2004 17:27:04 -0000
- Subject: [Bug c++/18077] [3.3/3.4/4.0 Regression] Members of anonymous namespaces get name mangled with first global variable instead of file name
- References: <20041020124640.18077.fafa@freesurf.ch>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fafa at freesurf dot ch 2004-10-28 17:27 -------
(In reply to comment #2)
> Using -z muldefs is beyond the scope of the C++ standard.
>
> There is no way to win for everyone here; some people really do not want the
> random names because they want predictability from the compiler.
If the name of a symbol depends on the order of definition of variables which
have nothing to do with this symbol, it's just as "random". And if I use the
unnamed namespace first, I get what you call "random name" anyway. Is this
predictable ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18077