Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.5, 6.4.0 RC1
-
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
For Gerrit Dashboard: QTBUG-106819 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
434100,2 | WIP: Disable passing of value types in generated code for now | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
434423,3 | WIP: Pass typed arguments by value | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
434663,13 | Add option to enforce function signatures | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |