http://llvm.org/bugs/show_bug.cgi?id=14958

             Bug #: 14958
           Summary: Namespaces and extern "C" can result in difficult to
                    find conflicts
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Test case:

namespace js
{
  extern int ObjectClass;
}
extern "C" namespace js
{
}
int
js::ObjectClass;

I'm not sure if this is correct, but it was accepted by GCC and earlier Clang
versions. At the very least, a note pointing to the ``extern "C"'' should be
added.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to