You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a message contains a repeated submessage step, and a field called loop_step, the generated pb.cc file will contain a duplicate label parse_loop_step and fail to build.
This same message built fine in proto2.x.
I know this seems like a contrived case, but it actually occurred in our code (a message describing a series of looping steps).
For such issues we usually only update the protocol compiler if renaming the field is not an option. Feel free to send us a patch if that's the case for you.
If a message contains a repeated submessage
step
, and a field calledloop_step
, the generated pb.cc file will contain a duplicate labelparse_loop_step
and fail to build.This same message built fine in proto2.x.
I know this seems like a contrived case, but it actually occurred in our code (a message describing a series of looping steps).
The generated code in proto3 is:
And the error is:
StepTest.pb.cc(466): error C2045: 'parse_loop_step' : label redefined
The same message, built with proto2, generates this:
The text was updated successfully, but these errors were encountered: