http://llvm.org/bugs/show_bug.cgi?id=8146
Summary: Clang incorrectly emitting 'is a private member of'
error for templated friend class
Product: new-bugs
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
I failed to find a less complex example of this issue, so apologies for the
amount of code.
See hash.h for the problematic code, test.cpp is a preprocessed file including
this header which clang++ will emit errors on.
In the class 'HashElement' the class 'csHash' is declared as a friend. However,
accesses to the private 'key' and 'value' members of the HashElement objects in
csHash member functions trigger the 'is a private member of' error.
Both GCC and MSVC can compile the example code with no errors.
--
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