Bug 23068 – [betterC] BetterC does not respect -checkaction=halt

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-28T10:13:39Z
Last change time
2022-04-28T18:16:13Z
Keywords
pull
Assigned to
No Owner
Creator
MrSmith33

Comments

Comment #0 by mrsmith33 — 2022-04-28T10:13:39Z
Both dmd and ldc try to call `_assert` when -checkaction=halt and -betterC flags are provided. Without -betterC flag, they correctly generate ud2 instruction.
Comment #1 by dlang-bot — 2022-04-28T15:03:29Z
@dkorpel created dlang/dmd pull request #14035 "Fix issue 23068 - BetterC does not respect -checkaction=halt" fixing this issue: - Fix issue 23068 - BetterC does not respect -checkaction=halt https://github.com/dlang/dmd/pull/14035
Comment #2 by dlang-bot — 2022-04-28T18:16:13Z
dlang/dmd pull request #14035 "Fix issue 23068 - BetterC does not respect -checkaction=halt" was merged into master: - 741bc6a08e408b7b0cd880c5afb70b24efa7bded by Dennis Korpel: Fix issue 23068 - BetterC does not respect -checkaction=halt https://github.com/dlang/dmd/pull/14035