[Issue 22675] New: ICE: passing the noreturn type as int

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 14 12:20:37 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22675

          Issue ID: 22675
           Summary: ICE: passing the noreturn type as int
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: hinoda2002 at outlook.jp

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.

--


More information about the Digitalmars-d-bugs mailing list