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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.1, 5.8.0 RC
    • Fix Version/s: 5.9.0 Beta 2
    • Component/s: Core: Other
    • Labels:
    • Environment:
      clang-cl 3.9.0 and MSVC2015 Update 3
    • Commits:
      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

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

            Activity

              People

              Assignee:
              thiago Thiago Macieira
              Reporter:
              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