http://llvm.org/bugs/show_bug.cgi?id=7803
Summary: error: no suitable member 'operator delete'
Product: clang
Version: trunk
Platform: All
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
-------------------------------------------------------------------------
#include <iostream>
class Base {
public:
static void operator delete(void *p) {};
virtual ~Base() {};
};
class Middle : protected Base {
public:
~Middle() {};
};
class Impl : protected Middle {
public:
using Middle::operator delete;
};
int main() {
Impl x;
}
-------------------------------------------------------------------------
g++ compiles this OK, but clang++ says:
opdelete.cpp:14:7: error: no suitable member 'operator delete' in 'Impl'
class Impl : protected Middle {
^
opdelete.cpp:16:17: note: member 'operator delete' declared here
using Middle::operator delete;
^
opdelete.cpp:20:8: note: implicit default destructor for 'Impl' first required
here
Impl x;
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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