------- Additional Comments From giovannibajo at libero dot it  2004-11-02 11:55 
-------
(In reply to comment #7)

> This point has been discussed in a number of PRs already. I maintain 
> my position that gcc could invoke the as-if rule to give these functions 
> internal linkage if they aren't taken as template parameters. Since 
> there is no user-visible effect, this is well within the allowed range, 
> and it would save us from a good number of the problems we've had over 
> time with mangling of symbol names in anonymous namespaces. 

I don't think it would solve the problem about mangling because the 
function/classes in anonymous namespaces can still be used as template 
arguments, so they could end up being mangled.

But it is an interesting point of view.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18267

Reply via email to