Bug 19376 – Do not generate object file from .di file passed on command line

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-08T00:10:22Z
Last change time
2018-11-08T08:12:49Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2018-11-08T00:10:22Z
A .di file is only supposed to be an interface. Generating code from it causes a collision with the object code generated by the corresponding .d file. .di files can be passed on the command line if they have different paths/names from the module declaration in the file itself.
Comment #1 by bugzilla — 2018-11-08T01:04:18Z
Comment #2 by github-bugzilla — 2018-11-08T08:12:48Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1c6f89dec7db2870c28760f9807cbda3f12f3dd6 fix Issue 19376 - Do not generate object file from .di file passed on command line https://github.com/dlang/dmd/commit/d398d8ca688a749c7f32b38d944934742c4e87ed Merge pull request #8928 from WalterBright/fix19376 fix Issue 19376 - Do not generate object file from .di file passed on…