[LLVMbugs] [Bug 20005] New: clang-cl fails to compile protected operator delete

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 11 07:00:05 PDT 2014


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

            Bug ID: 20005
           Summary: clang-cl fails to compile protected operator delete
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code doesn't compile with clang-cl but does with cl and clang.
I get: error: 'operator delete' is a protected member of 'nsFrame'

class nsFrame {
protected:
  void operator delete(void *);
};
class nsListBoxBodyFrame : public nsFrame {
  virtual ~nsListBoxBodyFrame();

public:
  virtual void m_fn1(int &);
};
int a;
void fn1() { ((nsListBoxBodyFrame *)0)->m_fn1(a); }

-- 
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/20140611/bb979244/attachment.html>


More information about the llvm-bugs mailing list