This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why are variables in anonymous namespaces not static?
- From: Matt Austern <austern at apple dot com>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 1 May 2003 20:38:02 -0700
- Subject: Re: Why are variables in anonymous namespaces not static?
On Thursday, May 1, 2003, at 06:06 PM, Geoffrey Keating wrote:
Can anyone tell me why
namespace { int i; }
doesn't give `i' static linkage?
No good reason as far as I can tell, but that's what the C++ standard
calls for. It may make a difference when and if we implement export.
--Matt