This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/10591] Members of anonymous namespaces get name mangled with header name
- From: "geoffk at geoffk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2003 23:02:45 -0000
- Subject: [Bug pch/10591] Members of anonymous namespaces get name mangled with header name
- References: <20030501232600.10591.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10591
------- Additional Comments From geoffk at geoffk dot org 2003-06-20 23:02 -------
Subject: Re: Members of anonymous namespaces get name mangled with header name
> From: Wolfgang Bangerth <bangerth@ices.utexas.edu>
> Date: Fri, 20 Jun 2003 16:37:39 -0500
> > What we want to do with this is to stop giving anonymous
> > namespace members globally-visible names, and then we don't need to make
> > their names unique.
>
> Yes, except for the open question of how this would interfere with "export".
> Not that I care about this at the moment, but should be considered before a
> fix.
I don't see how it could possibly interfere with the current export
non-implementation. If export gets implemented in future, it'll
require some way to communicate information between translation units,
and while it's doing that it can also ensure that names are unique
(which will surely be one of the smallest problems that need to be
solved).