https://bugs.winehq.org/show_bug.cgi?id=40043
--- Comment #11 from Henri Verbeet hverbeet@gmail.com --- (In reply to Detlef Riekenberg from comment #10)
This testcase can be compiled with g++ (result works) and wineg++ (result fails)
Does "-fno-short-wchar" make it any better? The underlying issue is probably that wchar_t is usually 32 bits on Linux, and 16 bits on Windows. Winegcc uses -fshort-wchar to try to work around that, but that means you can't then use things like Linux libstdc++ that assume wchar_t is 32-bit.
If you're using C++11 in particular, you're probably better of with "-fno-short-wchar" and using char16_t, u"", etc. instead of wchar_t and L"".