Compile Error C3615 when building cmake-gui.
Using CMake 3.15 and Qt 5.10.1:
1>------ Build started: Project: cmake-gui, Configuration: Debug Win32 ------
1>AddCacheEntry.cxx
1>CMakeSetup.cxx
1>CMakeSetupDialog.cxx
1>FirstConfigure.cxx
1>QCMake.cxx
1>QCMakeCacheView.cxx
1>QCMakeWidgets.cxx
1>RegexExplorer.cxx
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\RegexExplorer.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\RegexExplorer.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\RegexExplorer.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\FirstConfigure.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\FirstConfigure.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\FirstConfigure.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeWidgets.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeWidgets.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeWidgets.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\AddCacheEntry.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\AddCacheEntry.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\AddCacheEntry.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMake.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMake.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMake.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetup.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetup.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetup.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeCacheView.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeCacheView.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\QCMakeCacheView.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetupDialog.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetupDialog.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\CMakeSetupDialog.cxx)
1>WarningMessagesDialog.cxx
1>moc_AddCacheEntry.cpp
1>moc_Compilers.cpp
1>moc_CMakeSetupDialog.cpp
1>moc_FirstConfigure.cpp
1>moc_QCMake.cpp
1>moc_QCMakeCacheView.cpp
1>moc_QCMakeWidgets.cpp
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\WarningMessagesDialog.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\WarningMessagesDialog.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\Source\QtDialog\WarningMessagesDialog.cxx)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_Compilers.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_Compilers.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_Compilers.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_FirstConfigure.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_FirstConfigure.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_FirstConfigure.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMake.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMake.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMake.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_AddCacheEntry.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_AddCacheEntry.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_AddCacheEntry.cpp)
1>moc_RegexExplorer.cpp
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_CMakeSetupDialog.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_CMakeSetupDialog.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_CMakeSetupDialog.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeWidgets.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeWidgets.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeWidgets.cpp)
1>moc_WarningMessagesDialog.cpp
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeCacheView.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeCacheView.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_QCMakeCacheView.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_RegexExplorer.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_RegexExplorer.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_RegexExplorer.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(847): error C3615: constexpr function 'qCountLeadingZeroBits' cannot result in a constant expression (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_WarningMessagesDialog.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: failure was caused by call of undefined function or one not declared 'constexpr' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_WarningMessagesDialog.cpp)
1>C:\Qt\Qt5.10.1\5.10.1\msvc2017_64\include\QtCore/qalgorithms.h(858): note: see usage of 'qPopulationCount' (compiling source file D:\experiments\cmake-precompile-headers\build\Source\QtDialog\moc_WarningMessagesDialog.cpp)
1>Done building project "cmake-gui.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 14 up-to-date, 0 skipped ==========