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

cmd/compile: internal compiler error: large ONEW with EscNone: new() #14574

Closed
bobziuchkovski opened this issue Feb 29, 2016 · 6 comments
Closed
Milestone

Comments

@bobziuchkovski
Copy link

What version of Go are you using (go version)?

Go Playground

What operating system and processor architecture are you using (go env)?

Go Playground

What did you do?

See https://play.golang.org/p/beWgN_LRyJ -- it fails to compile with internal compiler error: large ONEW with EscNone: new(). The code itself doesn't make a lot of sense, building a buffer and not using it, but it should still compile.

What did you expect to see?

The program should run on the Go Playground.

What did you see instead?

The program fails to compile with internal compiler error: large ONEW with EscNone: new()

Other

If I assign the buffer to a variable and invoke a method, the code compiles and runs. See https://play.golang.org/p/tKXN_mw_Sp

@davecheney
Copy link
Contributor

Shorter repo, https://play.golang.org/p/YDCQcTZ0Kl

@mdempsky
Copy link
Member

Shorter still: https://play.golang.org/p/PyB02E34XI

@mdempsky
Copy link
Member

I suspect CL 10268 (e5060c7), which added that error message.

/cc @dr2chase @rsc

@dgryski
Copy link
Contributor

dgryski commented Feb 29, 2016

Duplicate of #11728 ?

@ianlancetaylor ianlancetaylor changed the title compiler: internal compiler error: large ONEW with EscNone: new() cmd/compile: internal compiler error: large ONEW with EscNone: new() Feb 29, 2016
@ianlancetaylor ianlancetaylor added this to the Go1.7 milestone Feb 29, 2016
@ianlancetaylor
Copy link
Contributor

Compiles with 1.4, fails with 1.5 and 1.6.

@cespare
Copy link
Contributor

cespare commented Feb 29, 2016

@dgryski yes, definitely a duplicate.

@minux minux closed this as completed Mar 5, 2016
@golang golang locked and limited conversation to collaborators Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants