Bug 23379 – Cast of expressions with type noreturn result in ice

Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-09-28T06:39:38Z
Last change time
2023-10-14T04:30:00Z
Keywords
backend, pull
Assigned to
No Owner
Creator
RazvanN

Comments

Comment #0 by razvan.nitu1305 — 2022-09-28T06:39:38Z
void main() { auto b = cast(double)(assert(0)); }
Comment #1 by dlang-bot — 2022-09-30T10:21:25Z
@RazvanN7 updated dlang/dmd pull request #14494 "Fix Issues 23331, 23379 - fix casts involving noreturn" fixing this issue: - Fix Issues 23331, 23379 - fix casts involving noreturn https://github.com/dlang/dmd/pull/14494
Comment #2 by dlang-bot — 2022-12-30T00:29:49Z
@ibuclaw created dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts involving noreturn"" mentioning this issue: - Revert "Fix Issues 23331, 23379 - fix casts involving noreturn" This reverts commit eb3eb89664e0bc3b61e59e934b4ba0287024914e. https://github.com/dlang/dmd/pull/14758
Comment #3 by dlang-bot — 2022-12-31T14:27:42Z
dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts involving noreturn"" was merged into master: - b8e9e3f29021c6f22233d489e8284165035fa5f5 by Iain Buclaw: Revert "Fix Issues 23331, 23379 - fix casts involving noreturn" This reverts commit eb3eb89664e0bc3b61e59e934b4ba0287024914e. https://github.com/dlang/dmd/pull/14758