2 // Contributed by Wolfgang Wieser <wwieser at gmx dot de>
3 // PR c++/15967: ICE with ambiguous operator new
5 typedef __SIZE_TYPE__ size_t;
7 struct A { void *operator new(size_t s){} }; // { dg-error "operator new" }
8 struct B { void *operator new(size_t s){} }; // { dg-error "operator new" }
14 C *c=new C(); // { dg-error "ambiguous" }