[LLVMbugs] [Bug 16059] New: Incorrect linkage for testcase with local type in inline function
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 17 15:02:54 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16059
Bug ID: 16059
Summary: Incorrect linkage for testcase with local type in
inline function
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
A similar case was fixed in r181981, but we still get this case wrong:
template <typename T>
struct foo {
template <T *P> static void f() {
}
static void *g() {
return (void*)f<nullptr>;
}
};
inline void *f() {
struct S {
};
return foo<S>::g();
}
we need to produce linkonce_odr linkage for foo::f, but we produce internal.
--
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/20130517/6a9e47d5/attachment.html>
More information about the llvm-bugs
mailing list