This patch to the Go frontend by Chris Manghane checks that the types that appear in function declarations are valid. This fixes https://golang.org/issue/11567. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian