http://llvm.org/bugs/show_bug.cgi?id=15772
Bug ID: 15772
Summary: no diagnostic for template friend which names
nonexistent class member
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang accepts this:
struct X { const char *f(); };
struct B { template<typename T> friend void X::f(T); };
It looks like we're injecting the friend template into the scope of X rather
than requiring it to redeclare a member in X. We do diagnose if there is no
function named 'f' in X, however.
--
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