-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.9.0 RC 2
-
None
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.