This is the mail archive of the
mailing list for the GCC project.
Re: Static linkage and anonymous namespace
> 1) From this standpoint, it would also make sense to make functions that
> use types from an anonymous namespace internal; from Martin's
> description, it sounds like his patch would do that (though I haven't
> read it over).
It does indeed.
> 2) The whole point of the anonymous namespace is to allow file-local
> things to be used in situations where a name with external linkage is
> required; for example, in template arguments.
I don't understand this point (didn't the last time). What code would
not compile anymore that currently does?