This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12291] [3.4 regression?] filename only sometimes in mangled name of anonymous namespace members
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2003 05:11:14 -0000
- Subject: [Bug c++/12291] [3.4 regression?] filename only sometimes in mangled name of anonymous namespace members
- References: <20030915201509.12291.phil.el@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12291
------- Additional Comments From bangerth at dealii dot org 2003-09-16 05:11 -------
OK, I understand. The thing with the explicit instantiation is the same then, though:
the function is only instantiated if you use the extern template thing. Otherwise it
is just not there and there's nothing you can key the anonymous namespace to.
Now as to whether it determines wrongly that something has internal linkage is a
different question...
Can you try to come up with a smaller testcase, i.e. get rid of the include file,
that shows the behavior you want to demonstrate? I can't seem to come up
with something based on my small example that would trigger with templates
and extern.
Thanks
Wolfgang