{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/51130","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/51130/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/51130/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/51130/events","html_url":"https://github.com/rust-lang/rust/issues/51130","id":327054015,"node_id":"MDU6SXNzdWUzMjcwNTQwMTU=","number":51130,"title":"inline-asm immediate constraint with fn argument crashes LLVM","user":{"login":"roblabla","id":1069318,"node_id":"MDQ6VXNlcjEwNjkzMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1069318?v=4","gravatar_id":"","url":"https://api.github.com/users/roblabla","html_url":"https://github.com/roblabla","followers_url":"https://api.github.com/users/roblabla/followers","following_url":"https://api.github.com/users/roblabla/following{/other_user}","gists_url":"https://api.github.com/users/roblabla/gists{/gist_id}","starred_url":"https://api.github.com/users/roblabla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblabla/subscriptions","organizations_url":"https://api.github.com/users/roblabla/orgs","repos_url":"https://api.github.com/users/roblabla/repos","events_url":"https://api.github.com/users/roblabla/events{/privacy}","received_events_url":"https://api.github.com/users/roblabla/received_events","type":"User","site_admin":false},"labels":[{"id":91598611,"node_id":"MDU6TGFiZWw5MTU5ODYxMQ==","url":"https://api.github.com/repos/rust-lang/rust/labels/A-inline-assembly","name":"A-inline-assembly","color":"d7e102","default":false},{"id":650731663,"node_id":"MDU6TGFiZWw2NTA3MzE2NjM=","url":"https://api.github.com/repos/rust-lang/rust/labels/C-bug","name":"C-bug","color":"f5f1fd","default":false},{"id":100522,"node_id":"MDU6TGFiZWwxMDA1MjI=","url":"https://api.github.com/repos/rust-lang/rust/labels/I-crash","name":"I-crash","color":"e10c02","default":false},{"id":211668100,"node_id":"MDU6TGFiZWwyMTE2NjgxMDA=","url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-28T15:00:31Z","updated_at":"2018-11-03T20:33:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```rust\r\n#![feature(asm)]\r\nfn main() {\r\n    unsafe { asm!(\"call $0\" :: \"i\"(test) :: \"intel\"); }\r\n}\r\nextern fn test() {}\r\n```\r\n\r\nFor some reason, this crashes rustc. However, the following test compiles properly in some cases:\r\n\r\n```rust\r\n#![feature(asm)]\r\nfn main() {\r\n    unsafe { asm!(\"call $0\" :: \"i\"(test as *const u8) :: \"intel\"); }\r\n}\r\nextern fn test() {}\r\n```\r\n\r\nBut, in a real world project, the exact same code I get errors such as `error: invalid operand for inline asm constraint 'i'` or compile-time segfaults."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/435618741","html_url":"https://github.com/rust-lang/rust/issues/51130#issuecomment-435618741","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/51130","id":435618741,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYxODc0MQ==","user":{"login":"rkruppe","id":2311707,"node_id":"MDQ6VXNlcjIzMTE3MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/2311707?v=4","gravatar_id":"","url":"https://api.github.com/users/rkruppe","html_url":"https://github.com/rkruppe","followers_url":"https://api.github.com/users/rkruppe/followers","following_url":"https://api.github.com/users/rkruppe/following{/other_user}","gists_url":"https://api.github.com/users/rkruppe/gists{/gist_id}","starred_url":"https://api.github.com/users/rkruppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkruppe/subscriptions","organizations_url":"https://api.github.com/users/rkruppe/orgs","repos_url":"https://api.github.com/users/rkruppe/repos","events_url":"https://api.github.com/users/rkruppe/events{/privacy}","received_events_url":"https://api.github.com/users/rkruppe/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T20:33:50Z","updated_at":"2018-11-03T20:33:50Z","author_association":"CONTRIBUTOR","body":"We should validate lots and lots of things about the values passed to inline asm, and we currently don't do any of them. That's no reason to not fix it, but it will be a drop in the bucket."}}
{"actor":{"display_login":"rkruppe"}}