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

QProperty still fails to compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.2
    • Core: Other
    • None
    • Windows

    Description

      MSVC 16.10 and MSVC 16.11 have a bug, which prevents implicit casts from `consteval` functions. Therefore, the compiler fails to compile sources using qproperty.h: QPropertyBinding<T> setBinding(...);

      The code: const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION

      Fails to compile with Error C7595.
      I propose to make the cast explicit.
      Alternatively wait, until Microsoft fixes that.

      For reference, I created a bugreport on https://developercommunity.visualstudio.com/t/consteval-is-still-broken-1610-1611-prev-when-init/1437213 .

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes