This is the mail archive of the
mailing list for the GCC project.
Re: Static linkage and anonymous namespace
> I can't think of any examples offhand that the compiler currently supports,
> but passing the address of a variable in the unnamed namespace to an
> exported template would break. I'd like not to have to change this back
> when we implement export.
I thought you'd bring up export, and I can't really defend myself here
because I have no clue how to implement exported templates.
So, it seems that closes the matter. Which brings me back to the
It is currently easy to produce duplicate symbols if you know the
algorithm for the anonymous namespace name. Is this a problem?
If so, should we merge the current time into the name?