gccgo: does not detect missing return (original) (raw)

gccgo successfully compiles the following program:

package a func f() int { for{}; _:}

while both gc and go/types reject it with missing return.
gcc version 6.0.0 2015070 (experimental) (GCC)