Issue 508 in protobuf: error: declaration shadows a member of this

159 views
Skip to first unread message

prot...@googlecode.com

unread,
May 4, 2013, 4:23:17 PM5/4/13
to prot...@googlegroups.com
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

prot...@googlecode.com

unread,
May 4, 2013, 4:24:18 PM5/4/13
to prot...@googlegroups.com

Comment #1 on issue 508 by jonrin...@gmail.com: error: declaration shadows
(No comment was entered for this change.)

Attachments:
0001-Fix-declaration-shadows-a-member-of-this.patch 1.5 KB

prot...@googlecode.com

unread,
May 4, 2013, 6:08:54 PM5/4/13
to prot...@googlegroups.com

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

(No comment was entered for this change.)

Attachments:
0001-Fix-declaration-shadows-a-member-of-this.patch 3.1 KB
Reply all
Reply to author
Forward
0 new messages