This patch by Chris Manghane fixes a compiler crash on an invalid program when the compiler tries to set a numeric constant to an invalid type. This fixes https://golang.org/issue/11537. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian