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

Inherited function compilation: assert(scope) failed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0, 6.4.22
    • Fix Version/s: 7.0.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      BaseModule := MODULE, VIRTUAL
          EXPORT AppendUniqueID(VIRTUAL DATASET ds) := FUNCTION
              ds1 := PROJECT
                  (
                      ds,
                      TRANSFORM
                          (
                              {
                                  UNSIGNED6   gid,
                                  RECORDOF(LEFT)
                              },
                              SELF.gid := COUNTER,
                              SELF := LEFT
                          )
                  );
              
              RETURN ds1;
          END;
      END;
      
      ChildModule := MODULE(BaseModule), VIRTUAL
      
      END;
      
      x := NOFOLD(DATASET(['a', 'b', 'c'], {STRING1 s}));
      ChildModule.AppendUniqueID(x);
      

      Syntax checking the above results in an error (from 6.4.22 eclcc):

      assert(scope) failed - file: hqlexpr.cpp, line 9902
      Testing/BWR_Test7.ecl(26,1): error C3000: assert(scope) failed - file: hqlexpr.cpp, line 9902
      1 error, 0 warning
      

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              dcamper Dan S. Camper
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: