The following code results in a segmentation fault for DMD in dmd.cppmangle.CppMangleVisitor.headOfType:
extern(C++) auto f(T)()
{
return T.init;
}
void main()
{
f!int;
}
Comment #1 by dlang-bot — 2023-04-12T09:01:02Z
@RazvanN7 created dlang/dmd pull request #15098 "Fix Issue 22739 - Segmentation fault in CppMangleVisitor.headOfType" fixing this issue:
- Fix Issue 22739 - Segmentation fault in CppMangleVisitor.headOfType
https://github.com/dlang/dmd/pull/15098
Comment #2 by dlang-bot — 2023-04-13T15:11:12Z
dlang/dmd pull request #15098 "Fix Issue 22739 - Segmentation fault in CppMangleVisitor.headOfType" was merged into stable:
- 6ac1535d16751e9c3ce31220683a38ff6b643df5 by RazvanN7:
Fix Issue 22739 - Segmentation fault in CppMangleVisitor.headOfType
https://github.com/dlang/dmd/pull/15098
Comment #3 by dlang-bot — 2023-05-01T19:33:40Z
dlang/dmd pull request #15156 "merge stable" was merged into master:
- bd23d5972b551e233bb08337f4735060edd5ff1c by Razvan Nitu:
Fix Issue 22739 - Segmentation fault in CppMangleVisitor.headOfType (#15098)
https://github.com/dlang/dmd/pull/15156