{"action":"created","issue":{"url":"https://api.github.com/repos/servo/rust-bindgen/issues/22","repository_url":"https://api.github.com/repos/servo/rust-bindgen","labels_url":"https://api.github.com/repos/servo/rust-bindgen/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/servo/rust-bindgen/issues/22/comments","events_url":"https://api.github.com/repos/servo/rust-bindgen/issues/22/events","html_url":"https://github.com/servo/rust-bindgen/issues/22","id":166921793,"number":22,"title":"Segfault with CRTP","user":{"login":"n3f4s","id":6142740,"avatar_url":"https://avatars.githubusercontent.com/u/6142740?v=3","gravatar_id":"","url":"https://api.github.com/users/n3f4s","html_url":"https://github.com/n3f4s","followers_url":"https://api.github.com/users/n3f4s/followers","following_url":"https://api.github.com/users/n3f4s/following{/other_user}","gists_url":"https://api.github.com/users/n3f4s/gists{/gist_id}","starred_url":"https://api.github.com/users/n3f4s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n3f4s/subscriptions","organizations_url":"https://api.github.com/users/n3f4s/orgs","repos_url":"https://api.github.com/users/n3f4s/repos","events_url":"https://api.github.com/users/n3f4s/events{/privacy}","received_events_url":"https://api.github.com/users/n3f4s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-21T21:26:26Z","updated_at":"2016-07-21T22:11:32Z","closed_at":null,"body":"Hi,\r\nusing __bindgen__ on a C++ template using [CRTP](https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern) result in a segfault.\r\n\r\nThe C++ file : \r\n```c++\r\ntemplate<class T>\r\nclass Base {};\r\n\r\nclass Derived : public Base<Derived> {};\r\n```\r\nI have __libclang v3.8.0__ and __rustc v1.9.0__ and I'm on _Manjaro Linux_ (linux distribution based on _Arch Linux_)."},"comment":{"url":"https://api.github.com/repos/servo/rust-bindgen/issues/comments/234399963","html_url":"https://github.com/servo/rust-bindgen/issues/22#issuecomment-234399963","issue_url":"https://api.github.com/repos/servo/rust-bindgen/issues/22","id":234399963,"user":{"login":"emilio","id":1323194,"avatar_url":"https://avatars.githubusercontent.com/u/1323194?v=3","gravatar_id":"","url":"https://api.github.com/users/emilio","html_url":"https://github.com/emilio","followers_url":"https://api.github.com/users/emilio/followers","following_url":"https://api.github.com/users/emilio/following{/other_user}","gists_url":"https://api.github.com/users/emilio/gists{/gist_id}","starred_url":"https://api.github.com/users/emilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilio/subscriptions","organizations_url":"https://api.github.com/users/emilio/orgs","repos_url":"https://api.github.com/users/emilio/repos","events_url":"https://api.github.com/users/emilio/events{/privacy}","received_events_url":"https://api.github.com/users/emilio/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T22:11:32Z","updated_at":"2016-07-21T22:11:32Z","body":"Yep, this is a stack overflow due to the recursion.\r\n\r\nMy guess is we can detect it, but I'm not too sure about what kind of rust representation would be accurate for this kind of inheritance."}}
{"actor":{"display_login":"emilio"}}