This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56996] no warning on using extern "C" in namespace
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Apr 2013 17:17:56 +0000
- Subject: [Bug c++/56996] no warning on using extern "C" in namespace
- Auto-submitted: auto-generated
- References: <bug-56996-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56996
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-18 17:17:56 UTC ---
(In reply to comment #1)
> (In reply to comment #0)
> > Using extern "C" in namespace is not right
>
> It avoids cluttering the global namespace. The namespace still affects name
> lookup, but not mangling or the linkage name.
More than that, the standard C++ headers actually use that feature.