digitalmars.D.bugs - [Issue 22675] New: ICE: passing the noreturn type as int
- d-bugmail puremagic.com (26/27) Jan 14 2022 https://issues.dlang.org/show_bug.cgi?id=22675
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 puremagic.com Reporter: hinoda2002 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. --
Jan 14 2022