Bug 22760 – Segmentation fault in CppMangleVisitor.template_arg

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-02-10T19:15:01Z
Last change time
2023-05-16T12:28:54Z
Keywords
C++, ice, pull
Assigned to
No Owner
Creator
Tim
See also
https://issues.dlang.org/show_bug.cgi?id=22737, https://issues.dlang.org/show_bug.cgi?id=22739

Comments

Comment #0 by tim.dlang — 2022-02-10T19:15:01Z
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