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

Symbian: QtConcurrent autotests don't compile with ARM RVCT or Nokia x86 (MWCC) compilers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.0, 4.6.1, 4.6.2
    • Core: QtConcurrent
    • None
    • 0ba0c374fe055623381e3795daa6743c5c995bbc

    Description

      Qt Concurrent is disabled on Symbian builds by configure.exe adding QT_NO_CONCURRENT and QT_NO_QFUTURE to qconfig.h
      If it is enabled, QtCore compiles with no errors, and some of the auto tests compile and pass.

      When compiling the autotests that use the templated classes, there are errors such as these:

      tst_qtconcurrentmap.cpp:115: warning: illegal empty declaration
      tst_qtconcurrentmap.cpp:844: ambiguous access to overloaded function 
      tst_qtconcurrentmap.cpp:844: 'QtConcurrent::blockingMapped<QList<int>, QList<int>::const_iterator, int (*)(int)>(QList<int>::const_iterator, QList<int>::const_iterator, int (*)(int))'
      tst_qtconcurrentmap.cpp:844: 'QtConcurrent::blockingMapped<QList<int>, QList<int>::const_iterator, int, int>(QList<int>::const_iterator, QList<int>::const_iterator, int (*)(int))'
      tst_qtconcurrentmap.cpp:859: ambiguous access to overloaded function 
      tst_qtconcurrentmap.cpp:859: 'QtConcurrent::blockingMapped<QLinkedList<int>, QLinkedList<int>::const_iterator, int (*)(int)>(QLinkedList<int>::const_iterator, QLinkedList<int>::const_iterator, int (*)(int))'
      tst_qtconcurrentmap.cpp:859: 'QtConcurrent::blockingMapped<QLinkedList<int>, QLinkedList<int>::const_iterator, int, int>(QLinkedList<int>::const_iterator, QLinkedList<int>::const_iterator, int (*)(int))'
      

      The same error occurs with both compilers - although the error message is written differently

         "C:\S60\qt\qt\tests\auto\qtconcurrentmap\tst_qtconcurrentmap.cpp", line 1122:
       Error:  #308: more than one instance of overloaded function "QtConcurrent::blockingMapped" matches the argument list:
                     function template "QtConcurrent::blockingMapped<Sequence,Iterator,MapFunctor>(Iterator, Iterator, MapFunctor)"
                     function template "QtConcurrent::blockingMapped<Sequence,Iterator,T,U>(Iterator, Iterator, T (*)(U))"
                     argument types are: (QList<QString>::const_iterator, QList<QString>::const_iterator, int (const QString &))
                   QList<int> list2 = QtConcurrent::blockingMapped<QList<int> >(strings.constBegin(),
                                      ^
      

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              shkearns Shane Kearns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes