Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
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
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
- depends on
-
QTQAINFRA-4242 Verify that Qt compiles with C++20
- Reported