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

Build issue with MSVC + /permissive- - Issue 3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • 5.9.0 RC 2
    • Other
    • None
    • WinRT

      In 'src\qtbase\src\corelib\kernel\qfunctions_winrt.h', there is code in '_await_impl' which references 'AsyncStatus':

          AsyncStatus status;

       

      AFAIK, the above type is supposed to be 'ABI::Windows::Foundation::AsyncStatus' and is declared in Windows SDK 'winrt\asyncinfo.h'.

      However, 'qfunctions_winrt.h' only includes 'windows.h' (via 'QtCore/qt_windows.h'), but not 'winrt\asyncinfo.h',

       

      You can repro the issue if you add some dummy code in 'qfunctions_winrt.h', like,

      inline void compiler_error() { AsyncStatus status; }

       

      Similarly, that file only forward declares 'Microsoft::WRL::ComPtr'. It should include 'wrl\client.h' instead.

       

       

       

       

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

            thiago Thiago Macieira
            xiangfan Xiang Fan
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change