This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18267] external linkage of functions declared in an anonymous namespace


------- Additional Comments From bangerth at dealii dot org  2004-11-02 01:53 -------
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. 
 
W. 

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]