Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14.1
-
None
Description
After fixing QTBUG-81916, an attempt to build Qt 5.14.1 with clang 10.0-rc1 in C++20 mode fails with a similar error in QtWidgets:
dialogs/qwizard.cpp:1241:20: error: use of overloaded operator '!=' is ambiguous (with operand types 'QWizardLayoutInfo' and 'QWizardLayoutInfo') if (layoutInfo != info) ~~~~~~~~~~ ^ ~~~~ dialogs/qwizard.cpp:259:17: note: candidate function inline bool operator!=(const QWizardLayoutInfo &other) { return !operator==(other); } ^ dialogs/qwizard.cpp:262:25: note: candidate function bool QWizardLayoutInfo::operator==(const QWizardLayoutInfo &other) ^ dialogs/qwizard.cpp:262:25: note: candidate function (with reversed parameter order)
As with QTBUG-81916, this will likely be an issue for other compilers as well when they catch up with C++20.