Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2503

C++: Fix name collision when a struct has a member named "val"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • C++ - Compiler
    • None
    • Patch Available

    Description

      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:

      void MyStruct::__set_val(const int32_t val) {
        val = val;
      __isset.val = true;
      }
      

      Attachments

        Activity

          People

            jensg Jens Geyer
            aspotashev Alexander Potashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: