Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69983

WIN64: 'expression did not evaluate to a constant' errors for QtBase qsizepolicy builds using MSVC 15.8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 RC
    • 5.12
    • None
    • * Windows 10 x64,
      * mingw-w64 x86_64 posix seh 8.1.0,
      * ICC 2018 Update 3,
      * MSVC 2017 15.8.0,
      * Windows SDK 10.0.17134.12,
      * Qt5-dev-013d1fd5405e72cf8589f9e805acb02d0bf91144.
    • Windows
    • f9431f5632ca577a099bd4063f1412cff81f5f8d (qtbase/5.12, 30.8.2018, 5.12)

    Description

      Hello, everyone,

      For builds using MSVC got error:

              cd qsizepolicy\ && ( if not exist Makefile C:\libQT-5.12-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.12-dev\build\qtbase\tests\auto\widgets\kernel\qsizepolicy\qsizepolicy.pro ) && C:\Windows\jom.exe -f Makefile
              C:\Windows\jom.exe -f Makefile.Release
              cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -std:c++14 -utf-8 -EHsc -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_DEBUG -DQT_FORCE_ASSERTS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"C:/libQT-5.12-dev/build/qtbase/tests/auto/widgets/kernel/qsizepolicy\"" -DNDEBUG -I. -I..\..\..\..\..\include\QtWidgets\5.12.0 -I..\..\..\..\..\include\QtWidgets\5.12.0\QtWidgets -I..\..\..\..\..\include -I..\..\..\..\..\include\QtWidgets -I..\..\..\..\..\include\QtGui\5.12.0 -I..\..\..\..\..\include\QtGui\5.12.0\QtGui -I..\..\..\..\..\include\QtGui -I..\..\..\..\..\include\QtANGLE -I..\..\..\..\..\include\QtCore\5.12.0 -I..\..\..\..\..\include\QtCore\5.12.0\QtCore -I..\..\..\..\..\include\QtTest -I..\..\..\..\..\include\QtCore -I.moc\release -I"C:\Program Files (x86)\VulkanSDK\include" -I..\..\..\..\..\mkspecs\win32-msvc -Fo.obj\release\ @C:\Users\test\AppData\Local\Temp\tst_qsizepolicy.obj.9392.31.jom
      tst_qsizepolicy.cpp
      tst_qsizepolicy.cpp(119): error C2131: expression did not evaluate to a constant
      C:\libqt-5.12-dev\build\qtbase\include\qtcore\../../src/corelib/tools/qalgorithms.h(747): note: failure was caused by call of undefined function or one not declared 'constexpr'
      C:\libqt-5.12-dev\build\qtbase\include\qtcore\../../src/corelib/tools/qalgorithms.h(747): note: see usage of 'QAlgorithmsPrivate::qt_builtin_ctz'
      tst_qsizepolicy.cpp(120): error C2131: expression did not evaluate to a constant
      C:\libqt-5.12-dev\build\qtbase\include\qtcore\../../src/corelib/tools/qalgorithms.h(747): note: failure was caused by call of undefined function or one not declared 'constexpr'
      C:\libqt-5.12-dev\build\qtbase\include\qtcore\../../src/corelib/tools/qalgorithms.h(747): note: see usage of 'QAlgorithmsPrivate::qt_builtin_ctz'
      jom: C:\libQT-5.12-dev\build\qtbase\tests\auto\widgets\kernel\qsizepolicy\Makefile.Release [.obj\release\tst_qsizepolicy.obj] Error 2
      jom: C:\libQT-5.12-dev\build\qtbase\tests\auto\widgets\kernel\qsizepolicy\Makefile [release] Error 2

       

      Reproduced for:

      • builds using MSVC 15.8.0,

      not reproduced for:

      • builds using MSVC 15.7.3.

       

      Best,

      Alexander

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes