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

Building CAN sample app with 5.9.0 fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.0 Beta 3
    • SerialBus: CAN Bus
    • None
    • 64bit Ubuntu 16.04

    Description

      I have just build the latest 5.9.0 branch and then tried to use it to build the CAN sample app that comes with Qt Creator (I was not able to build qt creator with 5.9.0). I made a kit and configure the sample app to use the 5.9.0 build and when I attempt to build the project I get the following error:

       

      /opt/Qt5.9_May10/include/QtCore/qglobal.h:944: error: invalid initialization of reference of type 'const QByteArray&' from expression of type 'const QString'
           for (variable = *_container_.i; _container_.control; _container_.control = 0)
                                        ^

      The line 944 in the code is the last line here:

       

      #define Q_FOREACH(variable, container)                                \
      for (QForeachContainer<typename std::remove_reference<decltype(container)>::type> _container_((container)); \
           _container_.control && _container_.i != _container_.e;         \
           ++_container_.i, _container_.control ^= 1)                     \
          for (variable = *_container_.i; _container_.control; _container_.control = 0)
      

      The build fails.

       

       

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            arasbm Aras Balali
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes