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() #11728
Comments
You can work around that error by causing the pointer to escape. |
Note: This is a regression. It doesn't happen with Go 1.4.2 |
It's probably @rsc 's call if we want to try to tweak this for 1.5, but there was a lot of work done for escape analysis and some lurking bugs plugged. For this particular case (large data with no pointers allocated on stack) it could probably be allowed to pass, but if pointers are in the large data a phase-after-escape-analysis moves such large stack allocations to the heap, potentially leaking stack pointers into the heap. That is my recollection, at least -- we replaced a potential difficult-to-analyze Heisenbug with a compile-time-error with a workaround. |
Changing
|
Go version: +2e4b659 15/07/2015, OS: Debian Jessie AMD64
The following program fails to compile:
with the message
The text was updated successfully, but these errors were encountered: