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

http://d.puremagic.com/issues/show_bug.cgi?id=9247