1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// PR c++/58457 struct allocator { void operator delete (void*); void* operator new (__SIZE_TYPE__, void*); }; struct type : public allocator { type() {} using allocator::operator new; using allocator::operator delete; }; int main() { new (0) type; return 0; }