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

Regression with bitwise operations (or array elements?)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.1, 5.3.0 Beta1
    • Fix Version/s: 5.3.0 RC1
    • Labels:
      None
    • Environment:
      Ubuntu 13.10, Debian/testing with Qt5.3 beta1 from sources.

      Description

      After execution following code:
      b = 201000 with Qt 5.0.2 (correct)
      b = 4 with Qt 5.2.1, 5.3beta1 (wrong)

        Component.onCompleted: {
            var a = [100500];
            var b = 2 * a[0] | 0;
            console.log("b = ", b);
        }
      

      If I don't access array by index everything seems to be OK

        Attachments

        1. test_1.txt
          2 kB
        2. test_2.txt
          2 kB

          Issue Links

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

            Activity

              People

              Assignee:
              shausman Simon Hausmann
              Reporter:
              kakadu Dmitrii Kosarev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes