Bug 19887 – Segfault with void tuple default parameter
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-05-21T03:20:16Z
Last change time
2020-03-21T03:56:39Z
Keywords
ice, pull
Assigned to
No Owner
Creator
elpenguino+D
Comments
Comment #0 by elpenguino+D — 2019-05-21T03:20:16Z
This code causes the compiler to segfault as of DMD 2.084.1. This did not occur in 2.083.1 and earlier. I did not test with 2.084.0.
```
void func(AliasSeq!(int) params = AliasSeq!(void)) {}
template AliasSeq(TList...)
{
alias AliasSeq = TList;
}
```
Comment #1 by dlang-bot — 2019-05-21T07:18:15Z
@Basile-z created dlang/dmd pull request #9825 "fix issue 19887 - Segfault with void tuple default parameter" fixing this issue:
- fix issue 19887 - Segfault with void tuple default parameter
https://github.com/dlang/dmd/pull/9825
Comment #2 by dlang-bot — 2019-05-21T08:33:41Z
dlang/dmd pull request #9825 "fix issue 19887 - Segfault with void tuple default parameter" was merged into stable:
- 9b471548fa4d765f5ee3d1733116b36112b0aecb by Basile Burg:
fix issue 19887 - Segfault with void tuple default parameter
https://github.com/dlang/dmd/pull/9825