http://llvm.org/bugs/show_bug.cgi?id=15914

            Bug ID: 15914
           Summary: Alias templates circumvent access control
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 10471
  --> http://llvm.org/bugs/attachment.cgi?id=10471&action=edit
testcase

In the attached code, A::B is private to A. Yet, outside of A, I can still
create an alias template T which refers to A::B, and can instantiate that alias
template without errors generated. As I recall, this should fail upon
instantiation of the template.

Note that this does require an alias template. A regular alias or typedef
behaves correctly and generates an error.

-- 
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

Reply via email to