This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Getting 3.3 out the door
Mark Mitchell wrote:
>On Thu, 2003-04-10 at 15:43, Branko Čibej wrote:
>
>
>>If I understand correctly, symbols that are defined in an anonymous
>>namespace can't be used from outside the compilation unit, regardless of
>>their linkage. If that's correct, then generating a UUID every time a
>>file is compiled, and using that for the namespace name (suitably
>>protected with leading underscores), would solve the problems, wouldn't
>>it? It doesn't matter if a later compile of the same file with the same
>>compiler options used a different namespace name, because things like
>>teimpate instantiations based on the anonymous-namespace types would be
>>regenerated anyway.
>>
>>
>
>We've been here before. :-)
>
Ah. I might have known. :-)
>We used to randomize the names, which works nicely.
>
>But some programs can use the anonymous namespace members from a place
>that is very much like "outside the compilation unit".
>
They can? Hmm.
/me tries to think of examples
>Furthermore, non-deterministic compilation was considered a misfeature.
>
>
--
Brane Čibej <brane at xbc dot nu> http://www.xbc.nu/brane/