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