Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 508 by jonrin...@gmail.com: error: declaration shadows a member of this
http://code.google.com/p/protobuf/issues/detail?id=508

What steps will reproduce the problem?
test.proto:
message Foo {
  required string bar = 1;
}

What is the expected output? What do you see instead?
I get a compiler error:
test.pb.h: In member function 'void Foo::set_allocated_bar(std::string*)':
test.pb.h:187: error: declaration of 'bar' shadows a member of 'this'

Attached is a patch that fixes the problem

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to