This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/56996] no warning on using extern "C" in namespace


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]