D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13150 - Add ability to log gagged compiler errors to file
Summary: Add ability to log gagged compiler errors to file
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: industry
Depends on:
Blocks:
 
Reported: 2014-07-17 10:16 UTC by Andrej Mitrovic
Modified: 2020-01-28 20:50 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2014-07-17 10:16:29 UTC
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 moonlightsentinel 2020-01-28 20:50:27 UTC
-verrors=spec was introduced in 2.072.0 which prints error messages from speculative compiles.