Bug 13150 – Add ability to log gagged compiler errors to file

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-17T10:16:29Z
Last change time
2020-01-28T20:50:27Z
Keywords
industry
Assigned to
No Owner
Creator
Andrej Mitrovic

Comments

Comment #0 by andrej.mitrovich — 2014-07-17T10:16:29Z
DMD does a lot of gagging and although ideally it would not have to do any gagging at all, it's going to be a long time before this happens. One problem with gagging is that it sometimes hides useful error messages (sometimes even your own static assert with a custom message). I propose we add an option to emit all gagged errors to a file. That way we can at least attempt to trace through the compiler stages to see what went wrong. This would require a new switch.
Comment #1 by moonlightsentinel — 2020-01-28T20:50:27Z
-verrors=spec was introduced in 2.072.0 which prints error messages from speculative compiles.