[LLVMbugs] [Bug 15914] New: Alias templates circumvent access control

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 5 22:21:34 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: kenwaynevan at hotmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130506/9450d5e2/attachment.html>


More information about the llvm-bugs mailing list