Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go1: internal compiler error: in do_get_tree, at go/gofrontend/ #1330

alberts opened this issue Dec 8, 2010 · 3 comments


Copy link

@alberts alberts commented Dec 8, 2010

What steps will reproduce the problem?

gccgo -c bork2.go with:

package bork2
type fooMap struct {}
func (m *fooMap) get() *Foo {}

What is the expected output?

not an internal compiler error

What do you see instead?

bork2.go:3:1: error: control reaches end of non-void function
bork2.go:3:25: error: use of undefined type ‘Foo’
go1: internal compiler error: in do_get_tree, at go/gofrontend/
Please submit a full bug report,
with preprocessed source if appropriate.
See <>; for instructions.

Which compiler are you using (5g, 6g, 8g, gccgo)?


Which operating system are you using?


Which revision are you using?  (hg identify)

URL: svn://
Repository Root: svn://
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 167582
Copy link

@rsc rsc commented Dec 8, 2010

Comment 1:

Labels changed: added gccgo.

Owner changed to

Status changed to Accepted.

Copy link

@ianlancetaylor ianlancetaylor commented Dec 9, 2010

Comment 2:

Fixed.  Thanks for reporting it.

Status changed to Fixed.

Copy link

@ianlancetaylor ianlancetaylor commented Dec 13, 2010

Comment 3:

Issue #1255 has been merged into this issue.

@alberts alberts added fixed labels Dec 13, 2010
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.