[Bug go/91172] go1: error: control reaches end of non-void function in libgo/go/cmd/cgo/gcc.go

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 15 13:21:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91172

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Sounds like global initializers to me.

Btw, -Wreturn-type isn't a Go FE warning, and it's initialized to -1,
so I wonder why go1 accepts it or has it > 0 (the warning is emitted from
pass_warn_function_return).


More information about the Gcc-bugs mailing list