Uploaded image for project: 'SonarCOBOL'
  1. SonarCOBOL
  2. SONARCOBOL-1559

S4884 should not run an infinite loop when several paragraphs use the same name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: Rules
    • Labels:
      None

      Description

      The implementation of RSPEC-4884 (Paragraphs used by a "PERFORM" statement should not contain "GO TO") should not run an infinite loop when several paragraphs have the same name. Example:

             IDENTIFICATION  DIVISION.
             PROCEDURE DIVISION.
      
             perform p1 thru p4.
             goback.
      
             p1.
             p2.
             p3.
             p2.
             p4.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              karim.ouerghemmi Karim El Ouerghemmi
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: