https://bugs.winehq.org/show_bug.cgi?id=55347
Bug ID: 55347 Summary: widl generated winrt headers fails to compile with C++ code Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: wine-bugs@winehq.org Reporter: nathbappai@gmail.com Distribution: ---
Created attachment 74933 --> https://bugs.winehq.org/attachment.cgi?id=74933 minimal sample code
If winrt headers are used with C++ code, it fails to compile with both g++ and clang++. In this case, the error comes from data types of virtual function parameters. Replacing the data types with fully qualified name fixes the compiler errors.
In the attachment section, a minimal sample code is added. That code does not do anything, it's just for compilation testing purpose. It compiles fine with MSVC/Visual Studio. Firefox is one of the project which is affected by this issue. Currently, a patch is used with mingw-w64 https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/scripts/misc/min...
https://bugs.winehq.org/show_bug.cgi?id=55347
--- Comment #1 from Biswapriyo Nath nathbappai@gmail.com --- Created attachment 74934 --> https://bugs.winehq.org/attachment.cgi?id=74934 compiler error from clang++
https://bugs.winehq.org/show_bug.cgi?id=55347
--- Comment #2 from Biswapriyo Nath nathbappai@gmail.com --- Created attachment 74935 --> https://bugs.winehq.org/attachment.cgi?id=74935 compiler error from g++
https://bugs.winehq.org/show_bug.cgi?id=55347
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
--- Comment #3 from Ken Sharp imwellcushtymelike@gmail.com --- What version of Wine are you using?
https://bugs.winehq.org/show_bug.cgi?id=55347
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=55347
--- Comment #4 from Biswapriyo Nath nathbappai@gmail.com --- From git repository.
https://bugs.winehq.org/show_bug.cgi?id=55347
Biswapriyo Nath nathbappai@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nathbappai@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=55347
--- Comment #5 from Biswapriyo Nath nathbappai@gmail.com --- This also affects another project, python-winsdk. See this issue https://github.com/msys2/MINGW-packages/issues/17998
https://bugs.winehq.org/show_bug.cgi?id=55347
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #6 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 76939 --> https://bugs.winehq.org/attachment.cgi?id=76939 Possible fix
Does this help?
https://bugs.winehq.org/show_bug.cgi?id=55347
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #7 from Jacek Caban jacek@codeweavers.com --- This should help: https://gitlab.winehq.org/wine/wine/-/merge_requests/6496
https://bugs.winehq.org/show_bug.cgi?id=55347
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |311609f12c3afc2a9463d854750 | |2184c51739833
--- Comment #8 from Jacek Caban jacek@codeweavers.com --- Fixed in git, thanks for the report.
https://bugs.winehq.org/show_bug.cgi?id=55347
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.18.