Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81917

QtWidgets fails to build with clang 10.0-rc1 in C++20 mode

    XMLWordPrintable

Details

    • All

    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.

      Attachments

        For Gerrit Dashboard: QTBUG-81917
        # Subject Branch Project Status CR V

        Activity

          People

            bero Bernhard Rosenkränzer
            bero Bernhard Rosenkränzer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes