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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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@4HA

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