-
Bug
-
Resolution: Done
-
P1: Critical
-
5.7.0, 5.7.1
-
None
-
windows 7 x64, ubuntu 16.04 GCC 5.3 x32 & x64
-
c4ebe96c34c2179d0ebdc555afdce179e3de52e8 (qtdeclarative)
Reproduced on a variety of platforms:
import QtQuick 2.7 import QtQuick.Window 2.2 Window { id: main visible: true width: 500 height: 300 function foo() { var c = main.width > 1 ? 27 : -147 } }
The conditional has to be used and the var has to be unused, otherwise it doesn't crash. The function doesn't need to be executed, it crashes during QQmlEngine.load()
- is duplicated by
-
QTBUG-56255 Malformed expression crashes JS optimizer
-
- Closed
-