http://llvm.org/bugs/show_bug.cgi?id=13512
Bug #: 13512
Summary: Attribute causes explicit instantiation of member
template to fail
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang accepts
struct foo {
template<typename T>
void f(T x) {}
};
template void foo::f(int x);
but rejects
struct foo {
template<typename T>
__attribute__ ((regparm (3))) void f(T x) {}
};
template void foo::f(int x);
with
test.cpp:5:20: error: explicit instantiation of 'f' does not refer to a
function template, member function, member class, or static data member
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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