{"action":"created","issue":{"url":"https://api.github.com/repos/mono/CppSharp/issues/702","repository_url":"https://api.github.com/repos/mono/CppSharp","labels_url":"https://api.github.com/repos/mono/CppSharp/issues/702/labels{/name}","comments_url":"https://api.github.com/repos/mono/CppSharp/issues/702/comments","events_url":"https://api.github.com/repos/mono/CppSharp/issues/702/events","html_url":"https://github.com/mono/CppSharp/issues/702","id":184874142,"number":702,"title":"Parser::ReadClassLayout parent bug","user":{"login":"sk-havok","id":1640758,"avatar_url":"https://avatars.githubusercontent.com/u/1640758?v=3","gravatar_id":"","url":"https://api.github.com/users/sk-havok","html_url":"https://github.com/sk-havok","followers_url":"https://api.github.com/users/sk-havok/followers","following_url":"https://api.github.com/users/sk-havok/following{/other_user}","gists_url":"https://api.github.com/users/sk-havok/gists{/gist_id}","starred_url":"https://api.github.com/users/sk-havok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sk-havok/subscriptions","organizations_url":"https://api.github.com/users/sk-havok/orgs","repos_url":"https://api.github.com/users/sk-havok/repos","events_url":"https://api.github.com/users/sk-havok/events{/privacy}","received_events_url":"https://api.github.com/users/sk-havok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-24T15:28:17Z","updated_at":"2016-10-24T16:37:22Z","closed_at":null,"body":"##### Brief Description\r\n\r\nWhile debugging a problem with multiple inheritance (will file another bug for that), I came across this in \r\nParser::ReadClassLayout\r\n\r\n```\r\nauto Parent = static_cast<AST::Class*>(\r\n        WalkDeclaration(RD, /*IgnoreSystemDecls =*/false));\r\nLayoutBase LayoutBase;\r\nLayoutBase.Offset = Offset.getQuantity();\r\nLayoutBase.Class = Parent;\r\nClass->Layout->Bases.push_back(LayoutBase);\r\n```\r\n\r\nFrom the code I've read, WalkDeclaration returns the Declaration of RD, not its parent.\r\nThe result is that Class gets itself as a base which surely is not intended."},"comment":{"url":"https://api.github.com/repos/mono/CppSharp/issues/comments/255794157","html_url":"https://github.com/mono/CppSharp/issues/702#issuecomment-255794157","issue_url":"https://api.github.com/repos/mono/CppSharp/issues/702","id":255794157,"user":{"login":"tritao","id":602268,"avatar_url":"https://avatars.githubusercontent.com/u/602268?v=3","gravatar_id":"","url":"https://api.github.com/users/tritao","html_url":"https://github.com/tritao","followers_url":"https://api.github.com/users/tritao/followers","following_url":"https://api.github.com/users/tritao/following{/other_user}","gists_url":"https://api.github.com/users/tritao/gists{/gist_id}","starred_url":"https://api.github.com/users/tritao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tritao/subscriptions","organizations_url":"https://api.github.com/users/tritao/orgs","repos_url":"https://api.github.com/users/tritao/repos","events_url":"https://api.github.com/users/tritao/events{/privacy}","received_events_url":"https://api.github.com/users/tritao/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T16:37:22Z","updated_at":"2016-10-24T16:37:22Z","body":"Well I tried to check with the debugger, and for instance, for the `Foo2` class in Common test suite, we get two layout bases, itself and `Foo`. "}}
{"actor":{"display_login":"tritao"}}