Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.2, 6.9.0 RC, 6.10.0
-
-
25f08f305 (dev), 7b5b011ba (6.9), 9500c2334 (6.8)
Description
When building the attached application with Qt 6.8.2 and Unity build, the C++ code generated from QML files have multiple "unit" variables shadowing each other. This is visible as compiler warning on GCC:
warning: declaration of ‘unit’ shadows a global declaration [-Wshadow]
or on MSVC:
warning C4459:declaration of 'unit' hides global declaration
Unity build and warning level are already enabled in the CMakeLists.txt, just build it to reproduce the issue.
NOTE: This warning does not occur when building with 6.5.8.
Attachments
For Gerrit Dashboard: QTBUG-134911 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
638813,2 | QmlCompiler: Rename "unit" argument to the signature generator | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
639085,2 | QmlCompiler: Rename "unit" argument to the signature generator | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
639158,2 | QmlCompiler: Rename "unit" argument to the signature generator | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |