Bug 22739 – Segmentation fault in CppMangleVisitor.headOfType

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

Comments

Comment #0 by tim.dlang — 2022-02-05T18:25:05Z
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