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

Regression: crash compiling do{} while() loop

XMLWordPrintable

    • b74268ef3e82f0fb9c1ed5392efd0e19c08ee5d5

      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.

        1. qtbug41766_stack.txt
          30 kB
        2. qtbug41766_stack.tasks
          2 kB
        3. qtbug41766_repro.diff
          0.5 kB
        For Gerrit Dashboard: QTBUG-41766
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes