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

Error compiling Qt with MSVC and c++2a

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.3.0 Alpha
    • 6.0.1, 6.1.0 Beta3
    • VS 2019: MSVC 19.28.29336.0
      Qt source: 6.0.1-0-202102020659 downloaded with maintenance tool
    • Windows

    Description

      Configure parameters:

      -c++std c++2a -debug-and-release -mp -opensource -confirm-license

      Compilation errors:

      FAILED: qtdeclarative/src/qml/CMakeFiles/Qml.dir/Release/qml/qqmlpropertybinding.cpp.obj
      
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(70): error C2182: 'val': illegal use of type 'void'
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qpropertyprivate.h(186): note: see reference to class template instantiation 'QPropertyData<PropertyType>' being compiled
              with
              [
                  PropertyType=void
              ]
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qpropertyprivate.h(208): note: see reference to function template instantiation 'QtPrivate::BindingFunctionVTable QtPrivate::BindingFunctionVTable::createFor<Callable,PropertyType>(void)' being compiled
              with
              [
                  Callable=QQmlPropertyBinding::create::<lambda_1>,
                  PropertyType=void
              ]
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(151): note: see reference to variable template 'const QtPrivate::BindingFunctionVTable bindingFunctionVTable<`QQmlPropertyBinding::create'::`5'::<lambda_1>,void>' being compiled
      C:\Qt\6.0.1\Src\qtdeclarative\src\qml\qml\qqmlpropertybinding.cpp(63): note: see reference to function template instantiation 'QUntypedPropertyBinding::QUntypedPropertyBinding<QQmlPropertyBinding::create::<lambda_1>>(QMetaType,Functor &&,const QPropertyBindingSourceLocation &)' being compiled
              with
              [
                  Functor=QQmlPropertyBinding::create::<lambda_1>
              ]
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(77): error C2182: 'abstract declarator': illegal use of type 'void'
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(78): error C2182: 'abstract declarator': illegal use of type 'void'
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(79): error C2182: 'abstract declarator': illegal use of type 'void'
      C:\Qt\6.0.1\build\qtbase\include\QtCore\../../../../Src/qtbase/src/corelib/kernel/qproperty.h(80): error C2182: 'abstract declarator': illegal use of type 'void'
      

       

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              chrisaverage Krzysztof Kawa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes