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

[REG 5.7.0 -> 5.7.1] Not detecting C++11 features of clang-cl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.7.1, 5.8.0 RC
    • Core: Other
    • clang-cl 3.9.0 and MSVC2015 Update 3
    • 77b33e4b856c8c60993c0d65ad32c146e98c6701

    Description

      Change-Id: I149e0540c00745fe8119fffd146286ffe480d216 seems to have introduced this regression:

      Building with Microsoft's compiler in MSVC2015 Update 3, the following macros are correctly defined by qcompilerdetection.h:

      Q_COMPILER_DECLTYPE
      Q_COMPILER_INITIALIZER_LISTS
      Q_COMPILER_NULLPTR
      Q_COMPILER_RVALUE_REFS
      Q_COMPILER_CLASS_ENUM
      Q_COMPILER_TEMPLATE_ALIAS
      Q_COMPILER_VARIADIC_TEMPLATES
      

      Building with clang-cl using Microsoft's implementation of the standard library in the very same version of MSVC, qcompilerdetection.h defines none of the above macros.

      This makes it impossible to do something as simple as use braced initializer syntax with QList.

      Qt 5.7.0 is unaffected.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              oktalist Mat Sutcliffe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes