The following code results in a segmentation fault for DMD in dmd.cppmangle.CppMangleVisitor.template_arg:
extern(C++) void f(T)(T)
{
}
struct S1(T)
{
struct S2
{
}
}
int main()
{
f(S1!int.S2());
return 0;
}
Comment #1 by dlang-bot — 2023-04-12T12:02:04Z
@RazvanN7 created dlang/dmd pull request #15099 "Fix Issue 22760 - Segmentation fault in CppMangleVisitor.template_arg" fixing this issue:
- Fix Issue 22760 - Segmentation fault in CppMangleVisitor.template_arg
https://github.com/dlang/dmd/pull/15099
Comment #2 by dlang-bot — 2023-05-05T08:05:34Z
dlang/dmd pull request #15099 "Fix Issue 22760 - Segmentation fault in CppMangleVisitor.template_arg" was merged into stable:
- 40a6ab327a062058024c5c887d02697c3e279c8f by RazvanN7:
Fix Issue 22760 - Segmentation fault in CppMangleVisitor.template_arg
https://github.com/dlang/dmd/pull/15099
Comment #3 by dlang-bot — 2023-05-16T12:28:54Z
dlang/dmd pull request #15238 "merge stable" was merged into master:
- 4a4adcd81a5df451abc2b8f9c47111edca0c1082 by Razvan Nitu:
Fix Issue 22760 - Segmentation fault in CppMangleVisitor.template_arg (#15099)
https://github.com/dlang/dmd/pull/15238