[
https://issues.apache.org/jira/browse/THRIFT-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040194#comment-14040194
]
Hudson commented on THRIFT-2503:
--------------------------------
FAILURE: Integrated in Thrift #1189 (See
[https://builds.apache.org/job/Thrift/1189/])
THRIFT-2503 C++: Fix name collision when a struct has a member named "val"
(jensg: rev 9999f5295e0c70443a5a5e5f206c87797cae56b0)
* compiler/cpp/src/generate/t_cpp_generator.cc
> C++: Fix name collision when a struct has a member named "val"
> --------------------------------------------------------------
>
> Key: THRIFT-2503
> URL: https://issues.apache.org/jira/browse/THRIFT-2503
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler
> Affects Versions: 0.9.1
> Reporter: Alexander Potashev
> Assignee: Jens Geyer
> Fix For: 0.9.2
>
> Attachments:
> 0001-THRIFT-2503-C-compiler-Fix-build-due-to-variable-nam.patch,
> THRIFT-2503_cpp_fix_name_collision_for_members_named_val.patch
>
>
> When a Thrift "struct" defined in the .thrift IDL file has a member "val",
> the C++ compiler generates the following faulty code in the setter method for
> that member variable:
> {code}
> void MyStruct::__set_val(const int32_t val) {
> val = val;
> __isset.val = true;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)