Issue 24760 - ICE on variadic after default argument
Summary: ICE on variadic after default argument
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: ice, pull
: 14651 (view as issue list)
Depends on:
Blocks:
 
Reported: 2024-09-10 22:02 UTC by Dennis
Modified: 2024-11-16 23:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dennis 2024-09-10 22:02:02 UTC
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(...
```
Comment 1 Dlang Bot 2024-09-11 13:08:06 UTC
@RazvanN7 created dlang/dmd pull request #16834 "Fix Bugzilla Issue 24760 - ICE on variadic after default argument" fixing this issue:

- Fix Bugzilla Issue 24760 - ICE on variadic after default argument

https://github.com/dlang/dmd/pull/16834
Comment 2 RazvanN 2024-09-11 14:20:49 UTC
*** Issue 14651 has been marked as a duplicate of this issue. ***
Comment 3 Dlang Bot 2024-09-12 08:10:29 UTC
dlang/dmd pull request #16834 "Fix Bugzilla Issue 24760 - ICE on variadic after default argument" was merged into stable:

- ba942e42d5b3a01d131950c06b26848172c2f830 by RazvanN7:
  Fix Bugzilla Issue 24760 - ICE on variadic after default argument

https://github.com/dlang/dmd/pull/16834
Comment 4 Dlang Bot 2024-10-07 09:00:28 UTC
dlang/dmd pull request #16967 "Rebase stable6" was merged into master:

- 17b469f57853e8057127dc4dde974445a280a75c by RazvanN7:
  Fix Bugzilla Issue 24760 - ICE on variadic after default argument

https://github.com/dlang/dmd/pull/16967
Comment 5 Dlang Bot 2024-11-16 23:27:13 UTC
dlang/dmd pull request #17069 "Merge stable" was merged into master:

- 219b4f07e47f9a0b4c4304b6b02620335bc2a172 by RazvanN7:
  Fix Bugzilla Issue 24760 - ICE on variadic after default argument

https://github.com/dlang/dmd/pull/17069