http://llvm.org/bugs/show_bug.cgi?id=11515
Bug #: 11515
Summary: incorrect access checking for friends of friends
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 allows this:
class A {
int n;
friend struct B;
};
struct B {
friend int get(A &a) {
return a.n;
}
};
It should not!
--
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