Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.1, 5.7.1
-
None
Description
The build fails with the warning 'self-comparison always evaluates to true [-Wtautological-compare]' which is raised to error.
It appears to be caused by a gcc error.
It is triggered by
#define Q_VTABLE_FUNCTION(classname, func) \ (classname::func == QV4::Managed::func ? 0 : classname::func)
in qv4managed_p.h
The following code can reproduce the warning:
class A { public: static void destroyed() { } }; class B : public A { }; const int tbl[1] = { B::destroyed == A::destroyed ? 0 : 1 };
Attachments
Issue Links
- duplicates
-
QTBUG-53373 qtdeclarative doesn't build with GCC 6.1.1 - self-comparison always evaluates to true
-
- Closed
-
For Gerrit Dashboard: QTBUG-56266 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
171533,5 | Fix developer-build with gcc 6 | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
174017,2 | Fix gcc6 build | 5.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |