D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20457 - Asserts must not be turned off in release builds of dmd
Summary: Asserts must not be turned off in release builds of dmd
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
: 15962 (view as issue list)
Depends on:
Blocks:
 
Reported: 2019-12-19 08:20 UTC by Walter Bright
Modified: 2021-07-09 22:01 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 Walter Bright 2019-12-19 08:20:22 UTC
Because the asserts check for compiler bugs. Disabling the checks means compiler crashes instead, and much worse, corrupt code being generated.
Comment 1 Walter Bright 2019-12-19 08:21:07 UTC
For example, issue 20130.
Comment 2 Dlang Bot 2019-12-19 08:59:52 UTC
@WalterBright created dlang/dmd pull request #10679 "fix Issue 20457 - Asserts must not be turned off in release builds of dmd" mentioning this issue:

- Issue 20457 - Asserts must not be turned off in release builds of dmd

https://github.com/dlang/dmd/pull/10679
Comment 3 basile-z 2019-12-19 12:30:43 UTC
*** Issue 15962 has been marked as a duplicate of this issue. ***
Comment 4 Dennis 2021-07-09 22:01:23 UTC
https://github.com/dlang/dmd/pull/10679 got superseded by https://github.com/dlang/dmd/pull/11523 which got merged.