looks fixed in 2.089.0, but a reduced case shows it's definitevely not:
---
module still;
template Foo() {
unittest {}
}
void bar()
{
__traits(getUnitTests, Foo);
}
---
2.089 emits an error when trying to get the test for bar, while the segfault is for the template.
Comment #2 by dlang-bot — 2019-11-03T22:18:37Z
@clYd3r created dlang/dmd pull request #10533 "fix issue 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault" fixing this issue:
- fix issue 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault
https://github.com/dlang/dmd/pull/10533
Comment #3 by destructionator — 2020-10-19T13:24:13Z
@BorisCarvajal created dlang/dmd pull request #11889 "Fix Issue 20324 - Calling __traits(getUnitTests) on a template causes…" fixing this issue:
- Fix Issue 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault
https://github.com/dlang/dmd/pull/11889
Comment #5 by dlang-bot — 2020-10-20T01:24:35Z
dlang/dmd pull request #11889 "Fix Issue 20324 - Calling __traits(getUnitTests) on a template causes…" was merged into stable:
- b75a3486f4a4fc953c13972f36923b2eccd0d4e9 by Boris Carvajal:
Fix Issue 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault
https://github.com/dlang/dmd/pull/11889
Comment #6 by dlang-bot — 2020-11-16T00:10:05Z
dlang/dmd pull request #11961 "merge stable" was merged into master:
- c765bb67b54ab7f590a4a595a85a9b3cd95ba76c by Boris Carvajal:
Fix Issue 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault
https://github.com/dlang/dmd/pull/11961