/* { dg-do compile } */// PR C++/30303// This used to ICE because we did not return NULL// in grokfndecl when an error happened.structIfoo{virtual~Ifoo(){}};structfoo:Ifoo{foo(){};};foo::~foo()// { dg-error "definition of implicitly-declared" }{deletethis;}