
#12725: T7037 is broken on Windows
---------------------------------+--------------------------------------
Reporter: bgamari | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Windows | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+--------------------------------------
Comment (by Phyx-):
This is a good testcase and it illustrates the problem nicely.
I don't think it's GCC, I think ultimately, it's some emulation layer
somewhere.
`execv` is emulated somewhere, not by calling Windows's `CreateProcess`
but probably some other posix function. I suspect it's somewhere in
https://github.com/mirror/newlib-cygwin but that wouldn't explain the
mingw version of GCC.
If you replace `execv` with `CreateProcess` the example works correctly in
all compilers
{{{
#include