{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/25851","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/25851/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/25851/comments","events_url":"https://api.github.com/repos/golang/go/issues/25851/events","html_url":"https://github.com/golang/go/issues/25851","id":331740793,"node_id":"MDU6SXNzdWUzMzE3NDA3OTM=","number":25851,"title":"gccgo: internal compiler error for interface with cyclic result types","user":{"login":"griesemer","id":8528975,"node_id":"MDQ6VXNlcjg1Mjg5NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/8528975?v=4","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"node_id":"MDU6TGFiZWwzNzM0MDIyODk=","url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"thanm","id":12280172,"node_id":"MDQ6VXNlcjEyMjgwMTcy","avatar_url":"https://avatars3.githubusercontent.com/u/12280172?v=4","gravatar_id":"","url":"https://api.github.com/users/thanm","html_url":"https://github.com/thanm","followers_url":"https://api.github.com/users/thanm/followers","following_url":"https://api.github.com/users/thanm/following{/other_user}","gists_url":"https://api.github.com/users/thanm/gists{/gist_id}","starred_url":"https://api.github.com/users/thanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanm/subscriptions","organizations_url":"https://api.github.com/users/thanm/orgs","repos_url":"https://api.github.com/users/thanm/repos","events_url":"https://api.github.com/users/thanm/events{/privacy}","received_events_url":"https://api.github.com/users/thanm/received_events","type":"User","site_admin":false},"assignees":[{"login":"thanm","id":12280172,"node_id":"MDQ6VXNlcjEyMjgwMTcy","avatar_url":"https://avatars3.githubusercontent.com/u/12280172?v=4","gravatar_id":"","url":"https://api.github.com/users/thanm","html_url":"https://github.com/thanm","followers_url":"https://api.github.com/users/thanm/followers","following_url":"https://api.github.com/users/thanm/following{/other_user}","gists_url":"https://api.github.com/users/thanm/gists{/gist_id}","starred_url":"https://api.github.com/users/thanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanm/subscriptions","organizations_url":"https://api.github.com/users/thanm/orgs","repos_url":"https://api.github.com/users/thanm/repos","events_url":"https://api.github.com/users/thanm/events{/privacy}","received_events_url":"https://api.github.com/users/thanm/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/23","html_url":"https://github.com/golang/go/milestone/23","labels_url":"https://api.github.com/repos/golang/go/milestones/23/labels","id":1069171,"node_id":"MDk6TWlsZXN0b25lMTA2OTE3MQ==","number":23,"title":"Gccgo","description":"Issues to be fixed in the gccgo distribution (as opposed to the main Go repos).\r\n","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":170,"state":"open","created_at":"2015-04-15T17:34:15Z","updated_at":"2018-06-13T13:15:07Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-06-12T20:26:52Z","updated_at":"2018-06-13T13:55:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"With\r\n```$ gccgo --version\r\ngccgo (google-gccgo-261288) 9.0.0 20180607 (experimental)\r\nCopyright (C) 2018 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n```\r\nthe following program\r\n```Go\r\n$ cat x.go\r\npackage main\r\n\r\nfunc main() {\r\n}\r\n\r\ntype I interface {\r\n\tM1() interface {\r\n\t\tI\r\n\t}\r\n\tM2() interface {\r\n\t\tI\r\n\t}\r\n}\r\n\r\ntype S struct{}\r\n\r\nfunc (S) M1() interface{ I } {\r\n\treturn nil\r\n}\r\n\r\nfunc (S) M2() interface{ I } {\r\n\treturn nil\r\n}\r\n```\r\ncrashes the compiler:\r\n```\r\n$ gccgo x.go\r\ngccgo: internal compiler error: Segmentation fault signal terminated program go1\r\nPlease submit a full bug report,\r\nwith preprocessed source if appropriate.\r\nSee <http://go.ext.google.com/go/> for instructions.\r\n```\r\nThe program compiles (somewhat surprisingly) without error if the struct definition is absent:\r\n```Go\r\n$ cat x.go\r\npackage main\r\n\r\nfunc main() {\r\n}\r\n\r\ntype I interface {\r\n\tM1() interface {\r\n\t\tI\r\n\t}\r\n\tM2() interface {\r\n\t\tI\r\n\t}\r\n}\r\n```\r\nFor the reference:\r\n- go/types accepts this code (not clear that it should)\r\n- cmd/compile doesn't terminate (issue #25262)\r\n\r\ncc: @thanm "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/396946193","html_url":"https://github.com/golang/go/issues/25851#issuecomment-396946193","issue_url":"https://api.github.com/repos/golang/go/issues/25851","id":396946193,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njk0NjE5Mw==","user":{"login":"thanm","id":12280172,"node_id":"MDQ6VXNlcjEyMjgwMTcy","avatar_url":"https://avatars3.githubusercontent.com/u/12280172?v=4","gravatar_id":"","url":"https://api.github.com/users/thanm","html_url":"https://github.com/thanm","followers_url":"https://api.github.com/users/thanm/followers","following_url":"https://api.github.com/users/thanm/following{/other_user}","gists_url":"https://api.github.com/users/thanm/gists{/gist_id}","starred_url":"https://api.github.com/users/thanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanm/subscriptions","organizations_url":"https://api.github.com/users/thanm/orgs","repos_url":"https://api.github.com/users/thanm/repos","events_url":"https://api.github.com/users/thanm/events{/privacy}","received_events_url":"https://api.github.com/users/thanm/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T13:55:58Z","updated_at":"2018-06-13T13:55:58Z","author_association":"MEMBER","body":"This bug has the same failure mode as [25302](https://github.com/golang/go/issues/25302) -- recursive cycle involving Interface_type::finish_backend_methods.   "}}
{"actor":{"display_login":"thanm"}}