[Bug 55347] New: widl generated winrt headers fails to compile with C++ code
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(a)winehq.org Reporter: nathbappai(a)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... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 --- Comment #1 from Biswapriyo Nath <nathbappai(a)gmail.com> --- Created attachment 74934 --> https://bugs.winehq.org/attachment.cgi?id=74934 compiler error from clang++ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 --- Comment #2 from Biswapriyo Nath <nathbappai(a)gmail.com> --- Created attachment 74935 --> https://bugs.winehq.org/attachment.cgi?id=74935 compiler error from g++ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase --- Comment #3 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- What version of Wine are you using? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 --- Comment #4 from Biswapriyo Nath <nathbappai(a)gmail.com> ---
From git repository.
-- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Biswapriyo Nath <nathbappai(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nathbappai(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 --- Comment #5 from Biswapriyo Nath <nathbappai(a)gmail.com> --- This also affects another project, python-winsdk. See this issue https://github.com/msys2/MINGW-packages/issues/17998 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Rémi Bernon <rbernon(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon(a)codeweavers.com --- Comment #6 from Rémi Bernon <rbernon(a)codeweavers.com> --- Created attachment 76939 --> https://bugs.winehq.org/attachment.cgi?id=76939 Possible fix Does this help? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek(a)codeweavers.com --- Comment #7 from Jacek Caban <jacek(a)codeweavers.com> --- This should help: https://gitlab.winehq.org/wine/wine/-/merge_requests/6496 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |311609f12c3afc2a9463d854750 | |2184c51739833 --- Comment #8 from Jacek Caban <jacek(a)codeweavers.com> --- Fixed in git, thanks for the report. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=55347 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 9.18. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla