This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]