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

error: use of ‘timeout’ before deduction of ‘auto’

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • None
    • 6.8.0 FF
    • Positioning, WebSockets
    • None

    Description

      In file included from /home/qt/work/install/include/QtTest/qtesteventloop.h:8,
                       from /home/qt/work/install/include/QtTest/qsignalspy.h:11,
                       from /home/qt/work/install/include/QtTest/QtTest:10,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp: In lambda function:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:47: error: use of ‘timeout’ before deduction of ‘auto’
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |                                               ^~~~~~~
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:5: error: no matching function for call to ‘std::chrono::duration<long int, std::ratio<1, 1000> >::duration(<brace-enclosed initializer list>)’
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /home/qt/work/install/include/QtCore/q20chrono.h:9,
                       from /home/qt/work/install/include/QtCore/QtCore:6,
                       from /home/qt/work/install/include/QtTest/QtTestDepends:3,
                       from /home/qt/work/install/include/QtTest/QtTest:3,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /usr/include/c++/9/chrono:338:14: note: candidate: ‘template<class _Rep2, class _Period2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&)’
        338 |    constexpr duration(const duration<_Rep2, _Period2>& __d)
            |              ^~~~~~~~
      /usr/include/c++/9/chrono:338:14: note:   template argument deduction/substitution failed:
      /usr/include/c++/9/chrono:331:23: note: candidate: ‘template<class _Rep2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&)’
        331 |    constexpr explicit duration(const _Rep2& __rep)
            |                       ^~~~~~~~
      /usr/include/c++/9/chrono:331:23: note:   template argument deduction/substitution failed:
      /usr/include/c++/9/chrono:324:2: note: candidate: ‘constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long int; _Period = std::ratio<1, 1000>]’
        324 |  duration(const duration&) = default;
            |  ^~~~~~~~
      /usr/include/c++/9/chrono:324:2: note:   conversion of argument 1 would be ill-formed:
      /usr/include/c++/9/chrono:322:12: note: candidate: ‘std::chrono::duration<_Rep, _Period>::duration() [with _Rep = long int; _Period = std::ratio<1, 1000>]’
        322 |  constexpr duration() = default;
            |            ^~~~~~~~
      /usr/include/c++/9/chrono:322:12: note:   candidate expects 0 arguments, 1 provided
      In file included from /home/qt/work/install/include/QtTest/qtesteventloop.h:8,
                       from /home/qt/work/install/include/QtTest/qsignalspy.h:11,
                       from /home/qt/work/install/include/QtTest/QtTest:10,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp: In member function ‘void tst_DataProcessor::doTest(int)’:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:5: error: ‘const void timeout’ has incomplete type
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1435:36: warning: unused parameter ‘timeout’ [-Wunused-parameter]
       1435 | void tst_DataProcessor::doTest(int timeout)
            |                                ~~~~^~~~~~~
      Sccache command failed, re-try calling build tool directly
      In file included from /home/qt/work/install/include/QtTest/qtesteventloop.h:8,
                       from /home/qt/work/install/include/QtTest/qsignalspy.h:11,
                       from /home/qt/work/install/include/QtTest/QtTest:10,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp: In lambda function:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:47: error: use of ‘timeout’ before deduction of ‘auto’
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |                                               ^~~~~~~
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:5: error: no matching function for call to ‘std::chrono::duration<long int, std::ratio<1, 1000> >::duration(<brace-enclosed initializer list>)’
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /home/qt/work/install/include/QtCore/q20chrono.h:9,
                       from /home/qt/work/install/include/QtCore/QtCore:6,
                       from /home/qt/work/install/include/QtTest/QtTestDepends:3,
                       from /home/qt/work/install/include/QtTest/QtTest:3,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /usr/include/c++/9/chrono:338:14: note: candidate: ‘template<class _Rep2, class _Period2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&)’
        338 |    constexpr duration(const duration<_Rep2, _Period2>& __d)
            |              ^~~~~~~~
      /usr/include/c++/9/chrono:338:14: note:   template argument deduction/substitution failed:
      /usr/include/c++/9/chrono:331:23: note: candidate: ‘template<class _Rep2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&)’
        331 |    constexpr explicit duration(const _Rep2& __rep)
            |                       ^~~~~~~~
      /usr/include/c++/9/chrono:331:23: note:   template argument deduction/substitution failed:
      /usr/include/c++/9/chrono:324:2: note: candidate: ‘constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long int; _Period = std::ratio<1, 1000>]’
        324 |  duration(const duration&) = default;
            |  ^~~~~~~~
      /usr/include/c++/9/chrono:324:2: note:   conversion of argument 1 would be ill-formed:
      /usr/include/c++/9/chrono:322:12: note: candidate: ‘std::chrono::duration<_Rep, _Period>::duration() [with _Rep = long int; _Period = std::ratio<1, 1000>]’
        322 |  constexpr duration() = default;
            |            ^~~~~~~~
      /usr/include/c++/9/chrono:322:12: note:   candidate expects 0 arguments, 1 provided
      In file included from /home/qt/work/install/include/QtTest/qtesteventloop.h:8,
                       from /home/qt/work/install/include/QtTest/qsignalspy.h:11,
                       from /home/qt/work/install/include/QtTest/QtTest:10,
                       from /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:3:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp: In member function ‘void tst_DataProcessor::doTest(int)’:
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1464:5: error: ‘const void timeout’ has incomplete type
       1464 |     QTRY_VERIFY_WITH_TIMEOUT(errorSpy.size(), timeout);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~
      /home/qt/work/qt/qtwebsockets/tests/auto/websockets/dataprocessor/tst_dataprocessor.cpp:1435:36: warning: unused parameter ‘timeout’ [-Wunused-parameter]
       1435 | void tst_DataProcessor::doTest(int timeout)
            |                                ~~~~^~~~~~~
      

      Build log: https://testresults.qt.io/logs/qt/qtwebsockets/933c7926068323991c87d1df74a67da2f8c41c06/LinuxopenSUSE_15_5x86_64LinuxopenSUSE_15_5x86_64GCCqtci-linux-openSUSE-15.5-x86_64-52-bdf6f3Sccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/5ee8250b8b73455a8ae5dbd50928f9ac01d2bba2/build_1707528418/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtwebsockets/tasks/1707528338

      Tested changes (refs/builds/qtci/dev/1707522277):
      https://codereview.qt-project.org/c/qt/qtwebsockets/+/538994/2 Update dependencies on 'dev' in qt/qtwebsockets

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes