fix issue 9247 - Compiler accepts opaque struct returned by value from
function pointer declaration.