Bug 18367 – dmd should not segfault on -X with libraries, but no source files

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-04T18:12:28Z
Last change time
2018-02-15T04:21:00Z
Keywords
pull
Assigned to
No Owner
Creator
Seb

Comments

Comment #0 by greensunny12 — 2018-02-04T18:12:28Z
dmd -conf= -X foo.a segfaults. Okay, it's a bizarre and wrong usage, but it should still print a proper error message and not SEGFAULT. PR incoming.
Comment #1 by greensunny12 — 2018-02-04T18:20:36Z
Comment #2 by github-bugzilla — 2018-02-15T04:21:00Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/7c0999581c1abb1f82874c67a06c15c23cdd41e0 Added -Xi to include new fields in JSON output Fix issue 18367