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

gcc 15: build error with src/qmldom/qqmldomtop.cpp

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11
    • 1
    • b7e341ec5 (dev), 3e9419b1f (6.9), 36e4ef155 (6.8), 3995e744e (tqtc/lts-6.5)
    • Foundation Sprint 124

    Description

      Fedora Rawhide(next release: 42) switches to gcc 15.
      gcc (GCC) 15.0.1 20250125 (Red Hat 15.0.1-0)

      /home/qt/dev/git/qt/qt5/qtdeclarative/src/qmldom/qqmldomtop.cpp: In member function ‘std::shared_ptr<QQmlJS::Dom::ModuleIndex> QQmlJS::Dom::DomEnvironment::moduleIndexWithUri(const QQmlJS::Dom::DomItem&, const QString&, int, QQmlJS::Dom::EnvLookup, QQmlJS::Dom::Changeable, const QQmlJS::Dom::ErrorHandler&)’:
      /home/qt/dev/git/qt/qt5/qtdeclarative/src/qmldom/qqmldomtop.cpp:1547:65: error: captured structured bindings are a C++20 extension [-Werror=c++20-extensions]
       1547 |     std::shared_ptr<ModuleIndex> newModulePtr = [&, candidate = candidate](){
            |                                                                 ^~~~~~~~~
      /home/qt/dev/git/qt/qt5/qtdeclarative/src/qmldom/qqmldomtop.cpp:1536:11: note: declared here
       1536 |     auto [candidate, origin] = moduleIndexWithUriHelper(self, uri, majorVersion, options);
            |           ^~~~~~~~~
      

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            liaqi Liang Qi
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes