http://llvm.org/bugs/show_bug.cgi?id=7989
Summary: access control misapplied to member templates
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=5413)
--> (http://llvm.org/bugs/attachment.cgi?id=5413)
testcase
I think the attached program is valid code. Clang rejects it with:
$ clang++ b2936099.cc
b2936099.cc:12:13: error: 'ProtectedTemplate' is a protected member of 'Base'
Tester< ProtectedTemplate<void> >();
^~~~~~~~~~~~~~~~~~~~~~~
b2936099.cc:1:30: note: while substituting explicitly-specified template
arguments into function template 'Tester'
template<void (*Fun)()> void Tester() {}
^
b2936099.cc:15:13: error: 'PrivateTemplate' is a private member of 'Base'
Tester< PrivateTemplate<void> >();
^~~~~~~~~~~~~~~~~~~~~
2 errors 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