{"action":"reopened","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/5504","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/5504/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/5504/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/5504/events","html_url":"https://github.com/coreos/etcd/issues/5504","id":157656085,"number":5504,"title":"Compilation error in generated c++ rpc.pb.h","user":{"login":"mauiarches","id":773538,"avatar_url":"https://avatars.githubusercontent.com/u/773538?v=3","gravatar_id":"","url":"https://api.github.com/users/mauiarches","html_url":"https://github.com/mauiarches","followers_url":"https://api.github.com/users/mauiarches/followers","following_url":"https://api.github.com/users/mauiarches/following{/other_user}","gists_url":"https://api.github.com/users/mauiarches/gists{/gist_id}","starred_url":"https://api.github.com/users/mauiarches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauiarches/subscriptions","organizations_url":"https://api.github.com/users/mauiarches/orgs","repos_url":"https://api.github.com/users/mauiarches/repos","events_url":"https://api.github.com/users/mauiarches/events{/privacy}","received_events_url":"https://api.github.com/users/mauiarches/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gyuho","id":6799218,"avatar_url":"https://avatars.githubusercontent.com/u/6799218?v=3","gravatar_id":"","url":"https://api.github.com/users/gyuho","html_url":"https://github.com/gyuho","followers_url":"https://api.github.com/users/gyuho/followers","following_url":"https://api.github.com/users/gyuho/following{/other_user}","gists_url":"https://api.github.com/users/gyuho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyuho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyuho/subscriptions","organizations_url":"https://api.github.com/users/gyuho/orgs","repos_url":"https://api.github.com/users/gyuho/repos","events_url":"https://api.github.com/users/gyuho/events{/privacy}","received_events_url":"https://api.github.com/users/gyuho/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/coreos/etcd/milestones/29","html_url":"https://github.com/coreos/etcd/milestones/v3.0.0","labels_url":"https://api.github.com/repos/coreos/etcd/milestones/29/labels","id":1595176,"number":29,"title":"v3.0.0","description":"","creator":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":58,"state":"open","created_at":"2016-02-21T01:37:54Z","updated_at":"2016-06-04T07:23:24Z","due_on":"2016-06-11T07:00:00Z","closed_at":null},"comments":6,"created_at":"2016-05-31T12:09:21Z","updated_at":"2016-06-04T07:23:24Z","closed_at":null,"body":"Hi,\r\n\r\nI got a following compilation error in rpc.pb.h\r\nrpc.pb.h:1110:9: error: ‘etcdserverpb::RequestUnion::RequestUnion’ has the same name as the class in which it is declared\r\n   union RequestUnion {\r\n\r\nGenerated RequestUnion:\r\nclass RequestUnion : public ::google::protobuf::Message {\r\n...\r\n  union RequestUnion {\r\n    RequestUnion() {}\r\n    ::etcdserverpb::RangeRequest* request_range_;\r\n    ::etcdserverpb::PutRequest* request_put_;\r\n    ::etcdserverpb::DeleteRangeRequest* request_delete_range_;\r\n  } request_;\r\n...\r\n}\r\n\r\nBased on rpc.proto RequestUnion is defined like this:\r\nmessage RequestUnion {\r\n  // request is a union of request types accepted by a transaction.\r\n  oneof request {\r\n    RangeRequest request_range = 1;\r\n    PutRequest request_put = 2;\r\n    DeleteRangeRequest request_delete_range = 3;\r\n  }\r\n}\r\n\r\nCan someone share how to solve this issue? "}}
{"actor":{"display_login":"gyuho"}}