http://llvm.org/bugs/show_bug.cgi?id=16060
Bug ID: 16060
Summary: Incorrect linkage for testcase with static member of
local type in inline function
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang incorrectly rejects
template <typename T>
struct foo {
template <T *P> static void f() {
}
static void *g() {
return (void*)f<&x>;
}
static T x;
};
template<typename T> T foo<T>::x;
inline void *f() {
struct S {
};
return foo<S>::g();
}
void *h() {
return f();
}
because it thinks 'x' has no linkage.
--
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