https://bugs.winehq.org/show_bug.cgi?id=53912
--- Comment #9 from Robbert van der Helm mail@robbertvanderhelm.nl --- Okay, here's another minimal program that immediately causes a segfault when run:
#include <iostream>
int main(int argc, char *argv[]) { std::cerr << argc << std::endl; }
Compile and run this with `wineg++ -o main -m64 -mwindows main.cpp` (also happens without the explicit -m64 -mwindows). The equivalent program with printf instead of iostreams doesn't cause a segfault.