http://llvm.org/bugs/show_bug.cgi?id=9940
Summary: Strange error with function pointer variable and
function template with same name
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
template<typename T> int f();
int main() {
int((*f)())(f<int>); f();
}
clang gives:
<stdin>:5:15: error: use of undeclared identifier 'f'
int((*f)())(f<int>); f();
^
I'm not entirely sure whether this is valid, but claiming that f is undeclared
is confusing at best.
--
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