Getting 3.3 out the door

Branko Čibej brane@xbc.nu
Thu Apr 10 23:35:00 GMT 2003


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@xbc.nu>   http://www.xbc.nu/brane/



More information about the Gcc mailing list