Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
None
-
Qt Creator 4.9.0
-
None
-
Visual studio 2017 15.7.2 + windows server 2016
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
- relates to
-
QTCREATORBUG-20520 QtCreator failed to build with std:c++17 + msvc on windows
- Closed