[Bug c++/18267] external linkage of functions declared in an anonymous namespace
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 2 01:53:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list