www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23019] New: Missing filename when -of points to an existing


          Issue ID: 23019
           Summary: Missing filename when -of points to an existing
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Trying to write the binary to an existing directory with -of yields a broken
error message:

mkdir src
dmd -c -of=src stuff.d
Error: Error writing file '   '

Note the '   '  instead of 'src'.

This is a regression introduced by https://github.com/dlang/dmd/pull/9751

Apr 15 2022