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

Compiling Qt 5.15.0 fails with c++2a (usage of std::is_literal_type)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.0
    • Core: Other
    • None
    • Compiling from qtbase-everywhere-src-5.15.0
      configure -opensource -confirm-license -platform win32-msvc2017 -shared -debug-and-release -nomake examples -nomake tests -c++std c++2a -mp -opengl desktop

      MSVC 2019 16.6.1
    • Windows

    Description

      Q_ARRAY_LITERAL_CHECK_LITERAL_TYPE defined in qarraydata.h makes used of std::is_literal_type which is not available in c+20 and above (it was deprecated in C+17).

       

      This results in a few instances of the following errrors:

      C:\Sista\extbuild\qtbase-everywhere-src-5.15.0\src\gui\painting\webgradients.cpp(47): error C2039: 'is_literal_type': is not a member of 'std' (compiling source file painting\qbrush.cpp)
      c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\variant(36): note: see declaration of 'std' (compiling source file painting\qbrush.cpp)
      C:\Sista\extbuild\qtbase-everywhere-src-5.15.0\src\gui\painting\webgradients.cpp(47): error C2275: 'QGradientStop': illegal use of this type as an expression (compiling source file painting\qbrush.cpp)
      C:\Sista\extbuild\qtbase-everywhere-src-5.15.0\include\QtGui\../../src/gui/painting/qbrush.h(175): note: see declaration of 'QGradientStop' (compiling source file painting\qbrush.cpp)
      C:\Sista\extbuild\qtbase-everywhere-src-5.15.0\src\gui\painting\webgradients.cpp(47): error C2039: 'value': is not a member of '`global namespace'' (compiling source file painting\qbrush.cpp)
      C:\Sista\extbuild\qtbase-everywhere-src-5.15.0\src\gui\painting\webgradients.cpp(47): error C2065: 'value': undeclared identifier (compiling source file painting\qbrush.cpp)

      C

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              mikew Michael Wynne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes