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

New issue 508 by error: declaration shadows a member of this

What steps will reproduce the problem?
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:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to