https://bugs.winehq.org/show_bug.cgi?id=56049
--- Comment #2 from kolAflash kolAflash@kolahilft.de --- (In reply to Zeb Figura from comment #1)
An internal compiler error is always a GCC bug. There may be something we can do to work around it, though.
Looks like Alex Henrie already reported a pretty similar GCC error in the GCC bugtracker. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111107#c8
My first guess for the bad commit is 4b458775bb. Does reverting that commit allow Wine to build?
Works fine with 4b458775bb reverted.
Note: https://gitlab.winehq.org/wine/wine/-/commit/4b458775bb