{"action":"opened","issue":{"url":"https://api.github.com/repos/ziglang/zig/issues/1490","repository_url":"https://api.github.com/repos/ziglang/zig","labels_url":"https://api.github.com/repos/ziglang/zig/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/ziglang/zig/issues/1490/comments","events_url":"https://api.github.com/repos/ziglang/zig/issues/1490/events","html_url":"https://github.com/ziglang/zig/issues/1490","id":358341321,"node_id":"MDU6SXNzdWUzNTgzNDEzMjE=","number":1490,"title":"Dereference then field access on an optional ptr => segfault","user":{"login":"UniqueID1","id":42499005,"node_id":"MDQ6VXNlcjQyNDk5MDA1","avatar_url":"https://avatars0.githubusercontent.com/u/42499005?v=4","gravatar_id":"","url":"https://api.github.com/users/UniqueID1","html_url":"https://github.com/UniqueID1","followers_url":"https://api.github.com/users/UniqueID1/followers","following_url":"https://api.github.com/users/UniqueID1/following{/other_user}","gists_url":"https://api.github.com/users/UniqueID1/gists{/gist_id}","starred_url":"https://api.github.com/users/UniqueID1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UniqueID1/subscriptions","organizations_url":"https://api.github.com/users/UniqueID1/orgs","repos_url":"https://api.github.com/users/UniqueID1/repos","events_url":"https://api.github.com/users/UniqueID1/events{/privacy}","received_events_url":"https://api.github.com/users/UniqueID1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-09T01:39:20Z","updated_at":"2018-09-09T01:39:20Z","closed_at":null,"author_association":"NONE","body":"```\r\nconst Struct = struct {\r\n    ptr: ?*c_void,\r\n};\r\n\r\npub fn main() void {\r\n    var a: ?*Struct = null;\r\n    a.*.ptr = null;\r\n}\r\n```\r\nNote the optional type and the explicit dereference which leads to this segfault, this should give a compiler error."}}
{"actor":{"display_login":"UniqueID1"}}