Well, ntstatus.h casts the constant to NTSTATUS, but in the same buggy way.
Buggy Win32 API headers
It doesn't deadlock when built with your gcc, but deadlocks when built with vanilla...
I tried Sandy, vanilla variant deadlocks either with or with no optimization enabled....
Hm, it deadlocks for me even if built with no optimization. Did you run it sufficiently...
Use -O2. It should deadlock (not each and every time, but pretty often).
Sorry, forgot it. Here it is.
Ah, sorry! I was horribly wrong regarding lhmouse build! It turned out it works just...
To further clarify the situation I've modified Parallel.h to make Visual C++ use...
LLD built with mingw-w64-based GCC deadlocks