[LLVMbugs] [Bug 24329] New: Code completion in derived class marks protected members from base class as inaccessible

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 31 11:56:07 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24329

            Bug ID: 24329
           Summary: Code completion in derived class marks protected
                    members from base class as inaccessible
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kalinichev.so.0 at gmail.com
                CC: klimek at google.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Test code to reproduce the issue:

class Base {
protected:
    int m_protected;
};

class Derived: public Base {
public:
    void function(){
      // Here m_protected has CXAvailability_NotAccessible availability
    }
};


Using: "c-index-test -code-completion-at=test.cpp:9:7 test.cpp | grep
m_protected" gives:

 FieldDecl:{ResultType int}{TypedText m_protected} (37) (inaccessible)

-- 
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/20150731/883b854b/attachment.html>


More information about the llvm-bugs mailing list