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

QProperty still fails to compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            febbe Fabian Ke├čler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes