Hi,

I got a following proto file with below message:

message RequestUnion {
oneof request {
RangeRequest request_range = 1;
PutRequest request_put = 2;
DeleteRangeRequest request_delete_range = 3;
}


Generated header file contains the following:
class RequestUnion
{
    RequestUnion();
    union RequestUnion {
      RequestUnion() {}
      ::etcdserverpb::RangeRequest* request_range_;
      ::etcdserverpb::PutRequest* request_put_;
      ::etcdserverpb::DeleteRangeRequest* request_delete_range_;
    } request_;
...
}

When i tried compiling the following error was seen:

rpc.pb.h:1110:9: error: ‘etcdserverpb::RequestUnion::RequestUnion’ has the 
same name as the class in which it is declared

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to