Bug 20457 – Asserts must not be turned off in release builds of dmd

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-12-19T08:20:22Z
Last change time
2021-07-09T22:01:23Z
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=20130

Comments

Comment #0 by bugzilla — 2019-12-19T08:20:22Z
Because the asserts check for compiler bugs. Disabling the checks means compiler crashes instead, and much worse, corrupt code being generated.
Comment #1 by bugzilla — 2019-12-19T08:21:07Z
For example, issue 20130.
Comment #2 by dlang-bot — 2019-12-19T08:59:52Z
@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 by b2.temp — 2019-12-19T12:30:43Z
*** Issue 15962 has been marked as a duplicate of this issue. ***
Comment #4 by dkorpel — 2021-07-09T22:01:23Z