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

Clang Static Analyzer reporting errors in MSVC 2015 Update 3 type_traits header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.1.0
    • Qt Creator 4.1.0-rc1
    • None
    • Windows 10 (64-bit)
      Qt Creator 4.0.83 (4.1.0-rc1) from revision 16ca70994b, built on Jul 22 2016
      Qt 5.6/5.7 for MSVC 2015 (32-bit)

    Description

      Analog to QTCREATORBUG-15940, Clang 3.8.0 reports more error in MSVC 2015 headers:

      In file included from C:/Qt/5.6/msvc2015/include/QtCore\QtCore:4:
      In file included from C:/Qt/5.6/msvc2015/include/QtCore/qabstractanimation.h:37:
      In file included from C:/Qt/5.6/msvc2015/include\QtCore/qobject.h:40:
      In file included from C:/Qt/5.6/msvc2015/include\QtCore/qobjectdefs.h:41:
      In file included from C:/Qt/5.6/msvc2015/include\QtCore/qnamespace.h:37:
      In file included from C:/Qt/5.6/msvc2015/include\QtCore/qglobal.h:77:
      In file included from C:/Qt/5.6/msvc2015/include\QtCore/qcompilerdetection.h:934:
      In file included from C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\utility:8:
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(524,45) :  error: '_To' does not refer to a value
                      : integral_constant<bool, __is_assignable(_To, _From)>
                                                                ^
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(521,16) :  note: declared here
      template<class _To,
                     ^
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(524,50) :  error: '_From' does not refer to a value
                      : integral_constant<bool, __is_assignable(_To, _From)>
                                                                     ^
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(522,8) :  note: declared here
              class _From>
                    ^
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(525,2) :  error: expected class name
              {       // determine whether _From can be assigned to _To
              ^
      3 errors generated.
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            VersalEszett Julius Bullinger
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes