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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 18 17:13:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56996

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-18 17:13:55 UTC ---
(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 information about the Gcc-bugs mailing list