http://llvm.org/bugs/show_bug.cgi?id=8000
Summary: access control should not apply to template-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]
Created an attachment (id=5417)
--> (http://llvm.org/bugs/attachment.cgi?id=5417)
testcase
The attached testcase is valid code, but clang gives an error on class A::B
being private. This is not correct when used in C<A::B> per 14.3/3 which
specifies that access control is only performed when a template argument is
used as a template-argument not when used as a template-name.
$ clang++ -fsyntax-only b2952128.cc
b2952128.cc:13:11: error: 'B' is a private member of 'A'
void C<A::B>::c() {}
^
b2952128.cc:8:8: note: declared private here
class B {};
^
1 error generated.
--
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