-
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.
For Gerrit Dashboard: QTBUG-61119 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
196767,1 | Ensure self-containment of qfunctions_winrt.h | 5.9 | qt/qtbase | Status: NEW | -1 | 0 |