Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
None
-
6.3.1
-
None
-
Windows 11
Description
When building the small attached example is a minimal example showing an error on Windows 11 with Qt 6.3.1 using Microsoft Visual C++ Compiler 17.2.32630.192 (amd64). The bug only manifests itself with the MSVC compiler and warning level /W4. MinGW 11.2.0 does not show the same warning, neither does warning level /W3.
The warning appears during compilation in main_qml.cpp (line 484) and reads: "C4456: Declaration of 'argType' hides previous local declaration." Since I have /Wx (treat warnings as errors) enabled the compilation fails.
Steps to reproduce:
- Configure CMake
- Click compile
- Result: Warning appears in main_qml.cpp (line 592) which says: "Declaration of 'argType' hides previous local declaration."
- Expected: No warning appears
You can find the minimal example also here: https://github.com/Foaly/Qt-Bugs/tree/master/msvc19_c4456_warning