[Issue 23930] New: assert(0) passed to function with noreturn parameter causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 20 01:08:35 UTC 2023


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

          Issue ID: 23930
           Summary: assert(0) passed to function with noreturn parameter
                    causes segfault
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: elpenguino+D at gmail.com

```
void main() {
    bar(assert(0));
}
void bar(noreturn) {}
```
With DMD 2.103.0 it also prints TYvoid.

--


More information about the Digitalmars-d-bugs mailing list