Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor
-
I'm trying to update to Qt 5.14 and having a lot of trouble with the change made to QColor. Code I had that compiled in 5.13 fails when referencing QColor.h:
For example:
In file included from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qpalette.h:45:0,
from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/qwidget.h:48,
from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/qdialog.h:44,
from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/QDialog:1,
from ../myproject/myclass.h:27,
from ../myproject/myclass.cpp:23:
/opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qcolor.h: In constructor ‘constexpr QColor::QColor(int, int, int, int)’:
/opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qcolor.h:79:18: sorry, unimplemented: use of the value of the object being constructed in a constant expressionThis happens with many of my source files.
Is this a known issue? I see that in the 5.14 Release Notes/Desktop Platforms, the stated reference configuration is "GCC 5.3.1 via devtoolset-4". Does this mean that since GCC 4.8.5 is the latest available for CentOS 7, I am stuck at Qt 5.13?
-
@Scopes said in Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor:
sorry, unimplemented: use of the value of the object being constructed in a constant expression
Hi
It has been reported and for 4.9
https://bugreports.qt.io/browse/QTBUG-80997 -
@Scopes said in Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor:
Thanks. I'll watch that bu
There is already a patch available which you may apply locally.