2.2.1 build broken by Qt 5.15.8
/var/tmp/portage/dev-util/kdevelop-pg-qt-2.2.1_p20220904/work/kdevelop-pg-qt-72138ed04d427f520e65b146525632e967177abe/kdev-pg/kdev-pg-regexp.cpp:192:69: error: macro "Q_FOREACH_IMPL" passed 4 arguments, but takes just 3
192 | foreach(NC(const pair<CharSet, size_t>& r), rules[state])
| ^
In file included from /usr/include/qt5/QtCore/qchar.h:43,
from /usr/include/qt5/QtCore/qstring.h:49,
from /usr/include/qt5/QtCore/QString:1,
from /var/tmp/portage/dev-util/kdevelop-pg-qt-2.2.1_p20220904/work/kdevelop-pg-qt-72138ed04d427f520e65b146525632e967177abe/include/kdev-pg-char-sets.h:34,
from /var/tmp/portage/dev-util/kdevelop-pg-qt-2.2.1_p20220904/work/kdevelop-pg-qt-72138ed04d427f520e65b146525632e967177abe/kdev-pg/kdev-pg-regexp.cpp:20:
/usr/include/qt5/QtCore/qglobal.h:1125: note: macro "Q_FOREACH_IMPL" defined here
1125 | #define Q_FOREACH_IMPL(variable, name, container) \
|
/var/tmp/portage/dev-util/kdevelop-pg-qt-2.2.1_p20220904/work/kdevelop-pg-qt-72138ed04d427f520e65b146525632e967177abe/kdev-pg/kdev-pg-regexp.cpp:219:65: error: macro "Q_FOREACH_IMPL" passed 4 arguments, but takes just 3
219 | foreach(NC(const pair<CharSet, size_t>& r), rules[state])
| ^
/usr/include/qt5/QtCore/qglobal.h:1125: note: macro "Q_FOREACH_IMPL" defined here
1125 | #define Q_FOREACH_IMPL(variable, name, container) \
|
/var/tmp/portage/dev-util/kdevelop-pg-qt-2.2.1_p20220904/work/kdevelop-pg-qt-72138ed04d427f520e65b146525632e967177abe/kdev-pg/kdev-pg-regexp.cpp:278:68: error: macro "Q_FOREACH_IMPL" passed 4 arguments, but takes just 3
278 | foreach(NC(const pair<CharSet, size_t>& i), rules[curr])
| ^
...and so on.
See also: dev-util_kdevelop-pg-qt-2.2.1_p20220904_20230109-214430.log
Presumably fixed by commit 81f7e2de in git master, but I'm wondering if that is something to fix in Qt actually, since build passes after reverting qt/qt/qtbase@826e076e [1]
Edited by Andreas Sturmlechner