Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18967

Clang compile problem:

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: eclrtl
    • Labels:
      None

      Description

      A problem because RtlSerialIfBlockTypeInfo has a destructor:

      /home/gavin/git/hpcc/rtl/eclrtl/./../../rtl/eclrtl/rtlfield.hpp:644:22: error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]
       constexpr inline RtlSimpleIfBlockTypeInfo(unsigned _fieldType, unsigned _length, const RtlFieldInfo * const * _fields, const RtlRecordTypeInfo * _rowType)
       ^
      /home/gavin/git/hpcc/rtl/eclrtl/./../../rtl/eclrtl/rtlfield.hpp:645:7: note: non-literal type 'RtlSerialIfBlockTypeInfo' cannot be used in a constant expression
       : RtlSerialIfBlockTypeInfo(_fieldType, _length, _fields, _rowType) {}
       ^
      1 error generated.

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: