www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14602] New: broken executable if filename contains opDispatch

https://issues.dlang.org/show_bug.cgi?id=14602

          Issue ID: 14602
           Summary: broken executable if filename contains opDispatch
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: sigod.mail gmail.com

Consider simplest program:
```d
void main() {}
```

Save file as, for example, `issue_with_opDispatch.d`.

```
$ dmd issue_with_opDispatch.d

$ issue_with_opDispatch.exe
sh.exe": ./issue_with_opDispatch.exe: Bad file number

$ rdmd issue_with_opDispatch.d
std.process.ProcessException std\process.d(560): Failed to spawn new process
(The requested operation requires elevation.)
----------------
0x0043770A
0x00429B9E
0x00403F79
0x00403FF3
0x004314B3
0x004313CB
0x00424A4C
0x767B33AA in BaseThreadInitThunk
0x76F19F72 in RtlInitializeExceptionChain
0x76F19F45 in RtlInitializeExceptionChain
$
```

dmd v2.067.1

--
May 18 2015