fix issue 9247 - Compiler accepts opaque struct returned by value from
function pointer declaration.
Merge pull request #2458 from hpohl/9247

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