This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18267] external linkage of functions declared in an anonymous namespace
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2004 01:53:16 -0000
- Subject: [Bug c++/18267] external linkage of functions declared in an anonymous namespace
- References: <20041101183010.18267.TazForEver@dlfp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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