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

dtemirbulatov at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 18 07:50:00 GMT 2013


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

             Bug #: 56996
           Summary: no warning on using extern "C" in namespace
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dtemirbulatov@gmail.com


Created attachment 29894
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29894
testcase

Using extern "C" in namespace is not right and it is good to have a warning in
such cases. Currently gcc is silent when front-end encounters such
constructions.
More on  this issue http://support.microsoft.com/kb/140357.



More information about the Gcc-bugs mailing list