[LLVMbugs] [Bug 8000] New: access control should not apply to template-name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 26 10:52:36 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list