You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Compile with gccgo:
package bork
type x struct {}
func y() (a []byte, e os.Error) {}
What do you see instead?
bork.go:3:25: error: expected package
bork.go:3:1: error: control reaches end of non-void function
In function ‘bork.y’:
go1: internal compiler error: in build_tree, at go/gofrontend/gogo-tree.cc:1559
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html>; for instructions.
Which compiler are you using (5g, 6g, 8g, gccgo)?
gccgo
Which operating system are you using?
linux
Which revision are you using? (hg identify)
URL: svn://gcc.gnu.org/svn/gcc/trunk
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 167409
The text was updated successfully, but these errors were encountered:
The compiler crash is definitely a bug, but note that this program is invalid. You need
to add
import "os"
to get a valid program. If the compiler didn't crash, you would get an error message.
Sure. I reduced this test case from a bigger source file where an import or include path
or something is missing, but due to the crash, I couldn't figure out what was wrong.
Thanks.
The text was updated successfully, but these errors were encountered: