Why are variables in anonymous namespaces not static?

Matt Austern austern@apple.com
Fri May 2 03:38:00 GMT 2003


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



More information about the Gcc mailing list