Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
5.6.2
-
None
-
Fedora Rawhide (F26).
Qt 5.6.2 LTS.
GCC/GCC-C++ 7.0.0.
Description
Qt 5.6.2 build failure with GCC 7.0.0:
In file included from mimetypes/qmimedatabase.cpp:42:0: mimetypes/qmimeprovider_p.h:59:7: note: forward declaration of 'class QMimeMagicRuleMatcher' class QMimeMagicRuleMatcher; ^~~~~~~~~~~~~~~~~~~~~ In file included from ../../include/QtCore/qlist.h:1:0, from ../../include/QtCore/../../src/corelib/kernel/qobject.h:43, from ../../include/QtCore/qobject.h:1, from ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:40, from ../../include/QtCore/qcoreapplication.h:1, from global/qt_pch.h:56: ../../include/QtCore/../../src/corelib/tools/qlist.h:484:31: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined while(from != to) --to, delete reinterpret_cast<T*>(to->v); ../../include/QtCore/../../src/corelib/tools/qlist.h:486:61: error: invalid use of incomplete type 'class QMimeMagicRuleMatcher' while (from != to) --to, reinterpret_cast<T*>(to)->~T(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ In file included from mimetypes/qmimedatabase.cpp:42:0: mimetypes/qmimeprovider_p.h:59:7: note: forward declaration of 'class QMimeMagicRuleMatcher' class QMimeMagicRuleMatcher; ^~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:37833: .obj/qmimedatabase.o] Error 1 make[2]: *** Waiting for unfinished jobs....