September 10 [Issue 24760] New: ICE on variadic after default argument | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: dkorpel@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@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(... ``` -- |
Copyright © 1999-2021 by the D Language Foundation