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

MSVC template warnings are not joined

    XMLWordPrintable

    Details

    • Commits:
      63cd4c1b586ed55381d8e1a7145bc69fc3ad81c3 (qt-creator/qt-creator/master)

      Description

      C:\LLVM\include\llvm/Support/type_traits.h(79): warning C4624: 'llvm::detail::copy_construction_triviality_helper<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::string
              ]
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\type_traits(630): note: see reference to class template instantiation 'llvm::detail::copy_construction_triviality_helper<T>' being compiled
              with
              [
                  T=std::string
              ]
      C:\LLVM\include\llvm/Support/type_traits.h(100): note: see reference to class template instantiation 'std::is_copy_constructible<llvm::detail::copy_construction_triviality_helper<T>>' being compiled
              with
              [
                  T=std::string
              ]
      C:\LLVM\include\llvm/ADT/SmallVector.h(211): note: see reference to class template instantiation 'llvm::is_trivially_copy_constructible<T>' being compiled
              with
              [
                  T=std::string
              ]
      C:\LLVM\include\llvm/ADT/SmallVector.h(883): note: see reference to class template instantiation 'llvm::SmallVectorImpl<T>' being compiled
              with
              [
                  T=std::string
              ]
      C:\LLVM\include\llvm/Support/Error.h(992): note: see reference to class template instantiation 'llvm::SmallVector<std::string,2>' being compiled

      And another one:

      C:\LLVM\include\llvm/Support/YAMLParser.h(324): warning C4996: 'std::iterator<std::input_iterator_tag,ValueT,ptrdiff_t,ValueT *,ValueT &>': warning STL4015: The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17. (The <iterator> header is NOT deprecated.) The C++ Standard has never required user-defined iterators to derive from std::iterator. To fix this warning, stop deriving from std::iterator and start providing publicly accessible typedefs named iterator_category, value_type, difference_type, pointer, and reference. Note that value_type is required to be non-const, even for constant iterators. You can define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
              with
              [
                  ValueT=llvm::yaml::KeyValueNode
              ]
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\xutility(6006): note: see declaration of 'std::iterator'
      C:\LLVM\include\llvm/Support/YAMLParser.h(425): note: see reference to class template instantiation 'llvm::yaml::basic_collection_iterator<llvm::yaml::MappingNode,llvm::yaml::KeyValueNode>' being compiled

      Both appear when building Qt Creator with cmake, so should be easy to reproduce.

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-25321
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes