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

WIN64: 'too few arguments in function call ... return Callback<TDelegateInterface>' errors for builds using ICC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.0 Alpha
    • 5.12
    • defb24004e9afcbe42d36b445151c2e842d59fba

    Description

      Hello, everyone,

       

      For builds using Windows ICC got errors:

      jom 1.1.2 - empower your cores
      
              cd src\ && ( if not exist Makefile C:\libQT-5.12-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.12-dev\build\qtconnectivity\src\src.pro ) && C:\Windows\jom.exe -f Makefile
              cd bluetooth\ && ( if not exist Makefile C:\libQT-5.12-dev\build\qtbase\bin\qmake.exe -o Makefile C:\libQT-5.12-dev\build\qtconnectivity\src\bluetooth\bluetooth.pro ) && C:\Windows\jom.exe -f Makefile
              C:\Windows\jom.exe -f Makefile.Debug
              icl -c -nologo -Zc:wchar_t -Qprec -Zm200 -Zc:forScope -Zi -MDd -Qoption,cpp,--unicode_source_kind,UTF-8 -W3 -Qdiag-disable:673,809,1738,1744,3373 /Fd.obj\debug\Qt5Bluetoothd.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_WINRT_BLUETOOTH -DCLASSIC_APP_BUILD -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_BLUETOOTH_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_FORCE_ASSERTS -DQT_CORE_LIB -D_WINDLL -I. -I..\..\include -I..\..\include\QtBluetooth -I..\..\include\QtBluetooth\5.12.0 -I..\..\include\QtBluetooth\5.12.0\QtBluetooth -Itmp -IC:\libQT-5.12-dev\build\qtbase\include\QtCore\5.12.0 -IC:\libQT-5.12-dev\build\qtbase\include\QtCore\5.12.0\QtCore -IC:\libQT-5.12-dev\build\qtbase\include -IC:\libQT-5.12-dev\build\qtbase\include\QtCore -Itmp\moc\debug -IC:\libQT-5.12-dev\build\qtbase\mkspecs\win32-icc -Fo.obj\debug\ @C:\Users\test\AppData\Local\Temp\qbluetoothserver_winrt.obj.3788.63.jom
      qbluetoothserver_winrt.cpp
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\wrl\event.h(335): error #165: too few arguments in function call
            return Callback<TDelegateInterface>([=](auto&& ...args) { return ((*object).*(method))(args ...); });
                                                                                                           ^
                detected during instantiation of "Microsoft::WRL::ComPtr<Microsoft::WRL::Details::DelegateArgTraitsHelper<TDelegateInterface, <expression>>::Interface> Microsoft::WRL::Callback<TDelegateInterface,TCallbackObject,TArgs...>(TCallbackObject *, HRESULT={long} (TCallbackObject::*)(TArgs...)) [with TDelegateInterface=ClientConnectedHandler, TCallbackObject=QBluetoothServerPrivate, TArgs=<ABI::Windows::Networking::Sockets::IStreamSocketListener *,
                          ABI::Windows::Networking::Sockets::IStreamSocketListenerConnectionReceivedEventArgs *>]" at line 177 of "qbluetoothserver_winrt.cpp"
      
      qbluetoothdevicediscoveryagent_winrt.cpp
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\wrl\event.h(335): error #165: too few arguments in function call
            return Callback<TDelegateInterface>([=](auto&& ...args) { return ((*object).*(method))(args ...); });
                                                                                                           ^
                detected during instantiation of "Microsoft::WRL::ComPtr<Microsoft::WRL::Details::DelegateArgTraitsHelper<TDelegateInterface, <expression>>::Interface> Microsoft::WRL::Callback<TDelegateInterface,TCallbackObject,TArgs...>(TCallbackObject *, HRESULT={long} (TCallbackObject::*)(TArgs...)) [with TDelegateInterface=ABI::Windows::Foundation::IAsyncOperationCompletedHandler<ABI::Windows::Devices::Bluetooth::BluetoothDevice *>, TCallbackObject=QWinRTBluetoothDeviceDiscoveryWorker,
                          TArgs=<ABI::Windows::Foundation::IAsyncOperation<ABI::Windows::Devices::Bluetooth::BluetoothDevice *> *, ABI::Windows::Foundation::AsyncStatus>]" at line 292 of "qbluetoothdevicediscoveryagent_winrt.cpp"
      
      qbluetoothservicediscoveryagent_winrt.cpp
      qbluetoothservicediscoveryagent_winrt.cpp(604): warning #1786: function "QString::operator=(const char *)" (declared at line 702 of "C:\libQT-5.12-dev\build\qtbase\include\QtCore/../../src/corelib/tools/qstring.h") was declared deprecated ("Use fromUtf8, QStringLiteral, or QLatin1String")
            errorString = "errorDescription";
                        ^
      
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\wrl\event.h(335): error #165: too few arguments in function call
            return Callback<TDelegateInterface>([=](auto&& ...args) { return ((*object).*(method))(args ...); });
                                                                                                           ^
                detected during instantiation of "Microsoft::WRL::ComPtr<Microsoft::WRL::Details::DelegateArgTraitsHelper<TDelegateInterface, <expression>>::Interface> Microsoft::WRL::Callback<TDelegateInterface,TCallbackObject,TArgs...>(TCallbackObject *, HRESULT={long} (TCallbackObject::*)(TArgs...)) [with TDelegateInterface=ABI::Windows::Foundation::IAsyncOperationCompletedHandler<ABI::Windows::Devices::Bluetooth::BluetoothDevice *>, TCallbackObject=QWinRTBluetoothServiceDiscoveryWorker,
                          TArgs=<ABI::Windows::Foundation::IAsyncOperation<ABI::Windows::Devices::Bluetooth::BluetoothDevice *> *, ABI::Windows::Foundation::AsyncStatus>]" at line 149 of "qbluetoothservicediscoveryagent_winrt.cpp"
      
      qbluetoothsocket_winrt.cpp
      C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt\wrl\event.h(335): error #165: too few arguments in function call
            return Callback<TDelegateInterface>([=](auto&& ...args) { return ((*object).*(method))(args ...); });
                                                                                                           ^
                detected during instantiation of "Microsoft::WRL::ComPtr<Microsoft::WRL::Details::DelegateArgTraitsHelper<TDelegateInterface, <expression>>::Interface> Microsoft::WRL::Callback<TDelegateInterface,TCallbackObject,TArgs...>(TCallbackObject *, HRESULT={long} (TCallbackObject::*)(TArgs...)) [with TDelegateInterface=SocketReadCompletedHandler, TCallbackObject=SocketWorker, TArgs=<IAsyncBufferOperation *, ABI::Windows::Foundation::AsyncStatus>]" at line 192 of "qbluetoothsocket_winrt.cpp"
      
      jom: C:\libQT-5.12-dev\build\qtconnectivity\src\bluetooth\Makefile.Debug [.obj\debug\qbluetoothserver_winrt.obj] Error 2
      jom: C:\libQT-5.12-dev\build\qtconnectivity\src\bluetooth\Makefile [debug] Error 2
      jom: C:\libQT-5.12-dev\build\qtconnectivity\src\Makefile [sub-bluetooth-make_first] Error 2
      jom: C:\libQT-5.12-dev\build\qtconnectivity\Makefile [sub-src-make_first] Error 2
      

       

      Reproduced for:

      not reproduced for:

       

      CC: thiago

       

      Best,

      Alexander

       

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes