[LLVMbugs] [Bug 17157] New: [-cxx-abi microsoft] Mangle extern "C" inline

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 8 12:23:16 PDT 2013


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

            Bug ID: 17157
           Summary: [-cxx-abi microsoft] Mangle extern "C" inline
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This is related to, but not the same as, PR17152

consider this ugly thing:
extern "C" inline int *f() { 
  static int g;
  return &g;
}

int *h() {
  return f();
}

Yes, your eyes do not deceive you, you can have extern "C" inline.

We mangle it as:
g

We should mangle it as:
?g@?1??f@@9 at 4HA

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130908/b7473d01/attachment.html>


More information about the llvm-bugs mailing list