struct A { virtual void f() = 0; }; typedef A (*fp)(); // { dg-error "abstract" }