www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18710] New: executable file not generated when -o- is used

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

          Issue ID: 18710
           Summary: executable file not generated when -o- is used
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: slavo5150 yahoo.com

Consider:

---main.d
import std.stdio;

void main()
{
    writeln("Hello, World!");
}

`dmd main.d` generates a `main.o` object file and a `main` executable.

`dmd -o- main.d` generates nothing

I think `dmd -o- main.d` should generate the `main` executable, but not the
`main.o` object file.

--
Apr 02 2018