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

qmlcachegen miscompiles value type references

    XMLWordPrintable

Details

    • de2d7cba76 (qt/qtdeclarative/dev) de2d7cba76 (qt/tqtc-qtdeclarative/dev)

    Description

      Consider:

      import QtQuick
      QtObject {
           property font f
           function doEvil(ff: font) { ff.pointSize = 22 }
           Component.onCompleted: doEvil(f)
      }
      

      f.pointSize should end up being 22, but when compiled ahead of time it will be 0. That is because the doEvil() function is called with a simple value type wrapper, not a value type reference as it should be.

      We need to avoid passing and returning of value types in AOT-compiled code until this is fixed.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes