Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22479

QtCreator failed to build with std:c++latest(c++20) + msvc on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.9.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Visual studio 2017 15.7.2 + windows server 2016
    • Platform/s:
      Windows

      Description

      QtCreator(master branch) with std:c++latest  failed due to error C2668, we can repro this on 5fa3ed2, can you help look at this?

      And  we ever also encountered this issue when building QTCreator under /std:c++17, related to source issue QTCREATORBUG-20520  and this issue has been fixed on https://codereview.qt-project.org/c/qt-creator/qt-creator/+/230982. Now it comes back under /std:c++latest.

      Repro step:

       1. git clone git://code.qt.io/qt-creator/qt-creator.git D:\QTCreator\src
       2. Open a VS 2017 x86 command prompt and browse to D:\QTCreator\src
       3. set CL=/D_HAS_AUTO_PTR_ETC=1 /std:c++latest
       4. qmake -r qtcreator.pro
       5. jom

      Failures:

      D:\QTCreator\src\src\plugins\cmakeprojectmanager\tealeafreader.cpp(322): error C2668: 'Utils::transform': ambiguous call to overloaded function
      ..\..\libs\utils/algorithm.h(703): note: could be 'decltype(auto) Utils::transform<std::vector,const QList<const ProjectExplorer::FileNode >&,CMakeProjectManager::Internal::TeaLeafReader::generateProjectTree::<lambda_5>,const ProjectExplorer::FileNode,std::unique_ptr<ProjectExplorer::FileNode,std::default_delete<_Ty>>,std::vector<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>>(SC,F)'
              with
              [
                  _Ty=ProjectExplorer::FileNode,
                  SC=const QList<const ProjectExplorer::FileNode *> &,
                  F=CMakeProjectManager::Internal::TeaLeafReader::generateProjectTree::<lambda_5>
              ]
      ..\..\libs\utils/algorithm.h(692): note: or       'decltype(auto) Utils::transform<std::vector,const QList<const ProjectExplorer::FileNode >&,CMakeProjectManager::Internal::TeaLeafReader::generateProjectTree::<lambda_5>,const ProjectExplorer::FileNode,std::unique_ptr<ProjectExplorer::FileNode,std::default_delete<_Ty>>,std::vector<std::unique_ptr<_Ty,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>>(SC,F)'
              with
              [
                  _Ty=ProjectExplorer::FileNode,
                  SC=const QList<const ProjectExplorer::FileNode *> &,
                  F=CMakeProjectManager::Internal::TeaLeafReader::generateProjectTree::<lambda_5>
              ]
      D:\QTCreator\src\src\plugins\cmakeprojectmanager\tealeafreader.cpp(325): note: while trying to match the argument list '(const QList<const ProjectExplorer::FileNode *>, CMakeProjectManager::Internal::TeaLeafReader::generateProjectTree::<lambda_5>)'

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              con Eike Ziller
              Reporter:
              quellazhang Quella Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes