Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41766

Regression: crash compiling do{} while() loop

    XMLWordPrintable

Details

    • b74268ef3e82f0fb9c1ed5392efd0e19c08ee5d5

    Description

      Use of a do() while loop crashes

      function crash()
      {
          var x = -1;
          do {
              if (x >= 1) {
                  x = 0;
              }
          } while (x != 0);
      }
      

      5.3 works fine. 5.4 crashes on load.

      Naturally the example above would infinite loop and be rubbish, but it's a simplified version of more legitimate code.

      Attachments

        1. qtbug41766_repro.diff
          0.5 kB
        2. qtbug41766_stack.tasks
          2 kB
        3. qtbug41766_stack.txt
          30 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mapaaso Matti Paaso
              davidedmundson David Edmundson
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes