[LLVMbugs] [Bug 23555] New: clang fails to find friend function template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 17 19:05:34 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23555
Bug ID: 23555
Summary: clang fails to find friend function template
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
struct S {
template <typename>
friend void f() {}
};
auto q = f<int>;
GCC, MSVC, ICC and FlexeLint all accept while clang rejects with:
error: use of undeclared identifier 'f'
error: expected '(' for function-style cast or type construction
--
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/20150518/20953694/attachment.html>
More information about the llvm-bugs
mailing list