This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41970] Unjustified "anonymous type" warning
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2009 18:27:26 -0000
- Subject: [Bug c++/41970] Unjustified "anonymous type" warning
- References: <bug-41970-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from redi at gcc dot gnu dot org 2009-11-06 18:27 -------
Members of anonymous namespaces do not necessarily have internal linkage,
that's the point. They are local to a translation unit, but can still have
external linkage.
N.B. for GCC 4.2 and later "Members of the anonymous namespace are now local to
a particular translation unit, along with any other declarations which use
them, though they are still treated as having external linkage for language
semantics."
>From http://gcc.gnu.org/gcc-4.2/changes.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41970