[LLVMbugs] [Bug 17152] New: [-cxx-abi microsoft] Mangle local types more accurately
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Sep 8 04:59:20 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17152
Bug ID: 17152
Summary: [-cxx-abi microsoft] Mangle local types more
accurately
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
consider:
template <class T> struct A {
// in A<X>, the following is allowed because the type with no linkage
// X is named using template parameter T.
friend void f(A, T){}
};
template <class T> int *g(T t) {
static int x = 0;
A<T> at;
f(at, t);
return &x;
}
int main() {
class X {} x;
return *g(x);
}
we mangle:
?f@@YAXU?$A at VX@?1??main@@@@@VX@?1??main@@@@Z
?x@?1???$g at VX@?1??main@@@@@YAPEAHVX@?1??main@@@@Z at 4HA
we want:
?f@@YAXU?$A at VX@?1?main@@@VX@?1??main@@9@@Z
?x@?1???$g at VX@?1?main@@@YAPEAHVX@?1??main@@9@@Z 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/618dba5b/attachment.html>
More information about the llvm-bugs
mailing list