typedef int PyObject; typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); template int _clear(PyObject* self); void _typeInfo() { reinterpret_cast(_clear); // { dg-error "overloaded function" } }