Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.9.0 Beta 3
-
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.