blob: 2abe399f8dc7a94e79511c5def0c4a21d80ebb22 [file] [log] [blame]
// 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;
}