[LLVMbugs] [Bug 10447] New: clang mangles extern "C" method if it declares a type in the function decl

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 22 16:39:12 PDT 2011


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

           Summary: clang mangles extern "C" method if it declares a type
                    in the function decl
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This testcase emits a mangled name for test() with clang:

  namespace ns {
    extern "C" {
      int test(struct helper *);
    }
    int test(struct helper *) { return 0; }
  }

but does not with GCC. Without referring to a standard, I think GCC's behaviour
is correct.

-- 
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.



More information about the llvm-bugs mailing list