[LLVMbugs] [Bug 15711] New: clang allows access to private overloaded member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 9 12:13:41 PDT 2013


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

            Bug ID: 15711
           Summary: clang allows access to private overloaded member
                    function
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

gcc rejects but clang accepts this:

class foo  {
  void f();
  void f(int);
};
template<typename T>
class bar : public foo {
  void g() {
    f();
  }
};
template class bar<int>;

-- 
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/20130409/71421d39/attachment.html>


More information about the llvm-bugs mailing list