Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
6.5.0
-
None
-
OS: Windows server 2022
VS: VS2022 17.5.4
-
-
5bec50a, 0bb2a58bd (dev)
Description
Qt6 failed to build with MSVC due to error C2362 under option /permissive- on Windows, reproduce steps and error message as follows, could you please take a look?
Steps to reproduce:
Open VS2022 x86 Native Tools command.
git clone -b 6.5 https://github.com/qt/qt5 F:\repo\qt\qt6 cd F:\repo\qt\qt6 git -C "F:\repo\qt\qt6" fetch --recurse-submodules=no --force git -C "F:\repo\qt\qt6" reset --hard 5bec50a git -C "F:\repo\qt\qt6" submodule foreach git reset --hard git -C "F:\repo\qt\qt6" submodule foreach git clean -xdf set VSCMD_SKIP_SENDTELEMETRY=1 & set _CL_= /permissive- perl init-repository -f 2>&1 mkdir build_x86 cd F:\repo\qt\qt6\build_x86 set _CL_=%_CL_% /wd4267 /wd4018 /wd5055 set _CL_=%_CL_% /Zc:strictStrings- ..\configure -developer-build -release -confirm-license -opensource -nomake tests 2>&1 cmake --build . --parallel --verbose 2>&1
Error info:
F:\repo\qt\qt6\qtopcua\src\3rdparty\open62541\open62541.c(48492): error C2362: initialization of 'dv' is skipped by 'goto finish' F:\repo\qt\qt6\qtopcua\src\3rdparty\open62541\open62541.c(48522): note: see declaration of 'finish' F:\repo\qt\qt6\qtopcua\src\3rdparty\open62541\open62541.c(49513): error C2362: initialization of 'sub' is skipped by 'goto cleanup' F:\repo\qt\qt6\qtopcua\src\3rdparty\open62541\open62541.c(49524): note: see declaration of 'cleanup'