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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs