[LLVMbugs] [Bug 17602] New: missing accessibility check for LHS of pointer-to-member access

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 16 13:34:42 PDT 2013


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

            Bug ID: 17602
           Summary: missing accessibility check for LHS of
                    pointer-to-member access
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang fails to diagnose an inaccessible base class being accessed via a
pointer-to-member:

struct Base { void Foo() {} };
struct Derived : private Base {};
void f(Derived *p, void (Base::*f)()) { (p->*f)(); }

-- 
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/20131016/4add5a46/attachment.html>


More information about the llvm-bugs mailing list