Commit Message

gccgo crashed on this test case, now added as bug304.go in the unified
Go testsuite.
package p
type S struct {
v interface{}
}
func g(e interface{}) { }
func f(s S) {
g(s.v.(*int))
}
The crash was because the frontend put a STATEMENT_LIST in a
constructor, which failed when the gimplifier attempted to copy the
value as an initializer for a temporary value. This may or may not be a
bug in the gimplifier, I'm not sure. But in any case it's easy to fix
in the gccgo frontend. Committed to gccgo branch.
Ian