{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11561","labels_url":"https://api.github.com/repos/golang/go/issues/11561/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11561/comments","events_url":"https://api.github.com/repos/golang/go/issues/11561/events","html_url":"https://github.com/golang/go/issues/11561","id":92859656,"number":11561,"title":"gccgo: compiles weird construct","user":{"login":"dvyukov","id":1095328,"avatar_url":"https://avatars.githubusercontent.com/u/1095328?v=3","gravatar_id":"","url":"https://api.github.com/users/dvyukov","html_url":"https://github.com/dvyukov","followers_url":"https://api.github.com/users/dvyukov/followers","following_url":"https://api.github.com/users/dvyukov/following{/other_user}","gists_url":"https://api.github.com/users/dvyukov/gists{/gist_id}","starred_url":"https://api.github.com/users/dvyukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvyukov/subscriptions","organizations_url":"https://api.github.com/users/dvyukov/orgs","repos_url":"https://api.github.com/users/dvyukov/repos","events_url":"https://api.github.com/users/dvyukov/events{/privacy}","received_events_url":"https://api.github.com/users/dvyukov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/Started","name":"Started","color":"ffffaa"}],"state":"open","locked":false,"assignee":{"login":"paranoiacblack","id":1035296,"avatar_url":"https://avatars.githubusercontent.com/u/1035296?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoiacblack","html_url":"https://github.com/paranoiacblack","followers_url":"https://api.github.com/users/paranoiacblack/followers","following_url":"https://api.github.com/users/paranoiacblack/following{/other_user}","gists_url":"https://api.github.com/users/paranoiacblack/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoiacblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoiacblack/subscriptions","organizations_url":"https://api.github.com/users/paranoiacblack/orgs","repos_url":"https://api.github.com/users/paranoiacblack/repos","events_url":"https://api.github.com/users/paranoiacblack/events{/privacy}","received_events_url":"https://api.github.com/users/paranoiacblack/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/milestones/Gccgo","labels_url":"https://api.github.com/repos/golang/go/milestones/23/labels","id":1069171,"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,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","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":53,"closed_issues":12,"state":"open","created_at":"2015-04-15T17:34:15Z","updated_at":"2015-07-25T00:00:17Z","due_on":"2098-12-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-07-03T11:50:01Z","updated_at":"2015-07-28T19:00:48Z","closed_at":null,"body":"gccgo successfully compiles the following program:\r\n```go\r\npackage main\r\nimport \"fmt\"\r\n\r\nfunc main() {\r\n\tvar a = complex()()\r\n\tvar i interface{} = a\r\n\tfmt.Printf(\"i: %T %#v\\n\", i, i)\r\n\tfmt.Printf(\"a: %T %#v\\n\", a, a)\r\n\tfmt.Printf(\"i: %T %#v\\n\", i, i)\r\n}\r\n```\r\nThe program panics when executed:\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0]\r\n\r\ngoroutine 16 [running]:\r\nreflect.rawString.pN13_reflect.rtype\r\n\t../../../libgo/go/reflect/type.go:467\r\nreflect.canonicalize\r\n\t../../../libgo/go/reflect/type.go:1943\r\nreflect.toType\r\n\t../../../libgo/go/reflect/type.go:1964\r\nreflect.TypeOf\r\n\t../../../libgo/go/reflect/type.go:1032\r\nfmt.printArg.pN6_fmt.pp\r\n\t../../../libgo/go/fmt/print.go:745\r\nfmt.doPrintf.pN6_fmt.pp\r\n\t../../../libgo/go/fmt/print.go:1183\r\nfmt.Fprintf\r\n\t../../../libgo/go/fmt/print.go:188\r\nfmt.Printf\r\n\t../../../libgo/go/fmt/print.go:197\r\nmain.main\r\n\t/tmp/111.go:7\r\ncreated by main\r\n\t../../../libgo/runtime/go-main.c:48\r\n```\r\ngcc version 6.0.0 20150702 (experimental) (GCC)"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/125721536","html_url":"https://github.com/golang/go/issues/11561#issuecomment-125721536","issue_url":"https://api.github.com/repos/golang/go/issues/11561","id":125721536,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T19:00:48Z","updated_at":"2015-07-28T19:00:48Z","body":"CL https://golang.org/cl/12778 mentions this issue."}}