This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for 10591, make variables in anonymous namespace static
- From: Jason Merrill <jason at redhat dot com>
- To: gkeating at apple dot com (Geoffrey Keating)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 04 Dec 2003 17:49:38 -0500
- Subject: Re: Fix for 10591, make variables in anonymous namespace static
- References: <20031204211922.9AC69733F74@geoffk4.apple.com>
On Thu, 4 Dec 2003 13:19:22 -0800 (PST), gkeating@apple.com (Geoffrey Keating) wrote:
> * decl.c (grokvardecl): Make declarations in the anonymous
> namespace not be visible outside this module.
I'm dubious. The whole point of the anonymous namespace is that
declarations have external linkage, so that their addresses can be used as
template arguments. This may not be important now, but it will be once we
implement export.
Jason