[Issue 24760] New: ICE on variadic after default argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 10 22:02:02 UTC 2024


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

          Issue ID: 24760
           Summary: ICE on variadic after default argument
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dkorpel at live.nl

Sent to me by Bruce Carneal.

```
long f(int e = 0, uint[] optional...) => optional.length;
long f0() => f(); // compiler segfaults
```

```
core.exception.ArraySliceError at src/dmd/typesem.d(838): slice [1 .. 0] has a
larger lower index than upper index
----------------
??:? onArraySliceError [0x5f0da9310bc6]
??:? _d_arraybounds_slicep [0x5f0da9300d36]
src/dmd/typesem.d:838 int dmd.typesem.callMatch(...
```

--


More information about the Digitalmars-d-bugs mailing list