{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13129","labels_url":"https://api.github.com/repos/golang/go/issues/13129/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13129/comments","events_url":"https://api.github.com/repos/golang/go/issues/13129/events","html_url":"https://github.com/golang/go/issues/13129","id":114738106,"number":13129,"title":"cmd/cgo: compiler error for C unsigned short is wrong.","user":{"login":"hydroflame","id":2773127,"avatar_url":"https://avatars.githubusercontent.com/u/2773127?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroflame","html_url":"https://github.com/hydroflame","followers_url":"https://api.github.com/users/hydroflame/followers","following_url":"https://api.github.com/users/hydroflame/following{/other_user}","gists_url":"https://api.github.com/users/hydroflame/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroflame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroflame/subscriptions","organizations_url":"https://api.github.com/users/hydroflame/orgs","repos_url":"https://api.github.com/users/hydroflame/repos","events_url":"https://api.github.com/users/hydroflame/events{/privacy}","received_events_url":"https://api.github.com/users/hydroflame/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestones/Unplanned","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\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":1137,"closed_issues":175,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2015-11-25T18:25:45Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-11-03T04:05:43Z","updated_at":"2015-11-25T19:52:01Z","closed_at":null,"body":"When trying to assign a variable of the wrong type to a C.ushort. The compiler will emit the error `cannot use <var> (type <var type>) as type C.unsignedshort in assignment`. However `C.unsignedshort` isn't even a real type. It should say `C.ushort`\r\n\r\nshort test program:\r\n    package main\r\n    \r\n    import \"C\"\r\n    \r\n    func main() {\r\n    \tvar x C.ushort\r\n    \ty := 5\r\n    \tx = y // ./bug.go:8: cannot use y (type int) as type C.unsignedshort in assignment\r\n    \t//var z C.unsignedshort // could not determine kind of name for C.unsignedshor\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/159714898","html_url":"https://github.com/golang/go/issues/13129#issuecomment-159714898","issue_url":"https://api.github.com/repos/golang/go/issues/13129","id":159714898,"user":{"login":"mdempsky","id":38349,"avatar_url":"https://avatars.githubusercontent.com/u/38349?v=3","gravatar_id":"","url":"https://api.github.com/users/mdempsky","html_url":"https://github.com/mdempsky","followers_url":"https://api.github.com/users/mdempsky/followers","following_url":"https://api.github.com/users/mdempsky/following{/other_user}","gists_url":"https://api.github.com/users/mdempsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mdempsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdempsky/subscriptions","organizations_url":"https://api.github.com/users/mdempsky/orgs","repos_url":"https://api.github.com/users/mdempsky/repos","events_url":"https://api.github.com/users/mdempsky/events{/privacy}","received_events_url":"https://api.github.com/users/mdempsky/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T19:52:01Z","updated_at":"2015-11-25T19:52:01Z","body":"Ah, nevermind, I can repro with Clang:\r\n\r\n    $ CC=clang-3.5 go build bug.go\r\n    # command-line-arguments\r\n    ./bug.go:8: cannot use y (type int) as type C.unsignedshort in assignment\r\n"}}