// { dg-do compile } // { dg-options "-g" } template struct QCachedT { void operator delete(void *, T *) {} }; template void exercise() { struct thing_t : QCachedT { }; thing_t *list[1]; new thing_t; // { dg-warning "" } } int main() { exercise<1>(); }