{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11728","labels_url":"https://api.github.com/repos/golang/go/issues/11728/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11728/comments","events_url":"https://api.github.com/repos/golang/go/issues/11728/events","html_url":"https://github.com/golang/go/issues/11728","id":95266914,"number":11728,"title":"cmd/compile: internal compiler error: large ONEW with EscNone: new()","user":{"login":"xi2","id":11040056,"avatar_url":"https://avatars.githubusercontent.com/u/11040056?v=3","gravatar_id":"","url":"https://api.github.com/users/xi2","html_url":"https://github.com/xi2","followers_url":"https://api.github.com/users/xi2/followers","following_url":"https://api.github.com/users/xi2/following{/other_user}","gists_url":"https://api.github.com/users/xi2/gists{/gist_id}","starred_url":"https://api.github.com/users/xi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xi2/subscriptions","organizations_url":"https://api.github.com/users/xi2/orgs","repos_url":"https://api.github.com/users/xi2/repos","events_url":"https://api.github.com/users/xi2/events{/privacy}","received_events_url":"https://api.github.com/users/xi2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":202,"closed_issues":13,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-07-16T23:14:25Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2015-07-15T19:04:41Z","updated_at":"2015-07-17T12:46:39Z","closed_at":null,"body":"Go version: +2e4b659 15/07/2015, OS: Debian Jessie AMD64\r\n\r\nThe following program fails to compile:\r\n\r\n```go\r\npackage main\r\n\r\ntype X struct {\r\n    Array [1 << 16]byte\r\n}\r\n\r\nfunc main() {\r\n    _ = &X{}\r\n}\r\n```\r\n\r\nwith the message\r\n\r\n```\r\n./test.go:8: internal compiler error: large ONEW with EscNone: new()\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/122264144","html_url":"https://github.com/golang/go/issues/11728#issuecomment-122264144","issue_url":"https://api.github.com/repos/golang/go/issues/11728","id":122264144,"user":{"login":"dr2chase","id":1928999,"avatar_url":"https://avatars.githubusercontent.com/u/1928999?v=3","gravatar_id":"","url":"https://api.github.com/users/dr2chase","html_url":"https://github.com/dr2chase","followers_url":"https://api.github.com/users/dr2chase/followers","following_url":"https://api.github.com/users/dr2chase/following{/other_user}","gists_url":"https://api.github.com/users/dr2chase/gists{/gist_id}","starred_url":"https://api.github.com/users/dr2chase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr2chase/subscriptions","organizations_url":"https://api.github.com/users/dr2chase/orgs","repos_url":"https://api.github.com/users/dr2chase/repos","events_url":"https://api.github.com/users/dr2chase/events{/privacy}","received_events_url":"https://api.github.com/users/dr2chase/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T12:46:39Z","updated_at":"2015-07-17T12:46:39Z","body":"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."}}