Bug 22675 – ICE: passing the noreturn type as int

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2022-01-14T12:20:37Z
Last change time
2022-01-14T12:38:25Z
Assigned to
No Owner
Creator
[email protected]

Comments

Comment #0 by hinoda2002 — 2022-01-14T12:20:37Z
this code triggers an assertion in the backend: --- void foo(int x); void bar() { foo(assert(false)); } --- > dmd: src/dmd/backend/cod1.d:4057: Assertion `retregs || !*pretregs' failed. dmd git revision: ba85e15f97d1c5490bd40e29fa642455acb38f32 Similar with https://issues.dlang.org/show_bug.cgi?id=21956 and https://issues.dlang.org/show_bug.cgi?id=22390, but happening in a different location.
Comment #1 by maxhaton — 2022-01-14T12:35:46Z
Comment #2 by hinoda2002 — 2022-01-14T12:38:25Z
(In reply to mhh from comment #1) > See also https://issues.dlang.org/show_bug.cgi?id= Thanks, seems to be dupicated so close this. *** This issue has been marked as a duplicate of issue 22587 ***