[LLVMbugs] [Bug 13512] New: Attribute causes explicit instantiation of member template to fail
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 2 06:35:32 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list