Bug 22857 – Segfault for malformed static if in imported template

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-07T16:31:15Z
Last change time
2023-05-01T19:33:42Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2022-03-07T16:31:15Z
The following code segfaults when compiled as dmd -c -o- test.d --- test.d void isPrettyPropertyName() { import functional; unaryFun!(); } --- functional.d template unaryFun() { static if }
Comment #1 by dlang-bot — 2023-04-12T07:43:02Z
@RazvanN7 updated dlang/dmd pull request #15097 "Fix Issue 22859 - Segfault for malformed static if in imported template" fixing this issue: - Fix Issue 22857 - Segfault for malformed static if in imported template https://github.com/dlang/dmd/pull/15097
Comment #2 by dlang-bot — 2023-04-13T15:10:53Z
dlang/dmd pull request #15097 "Fix Issue 22857 - Segfault for malformed static if in imported template" was merged into stable: - 9162969ce3547811679d8c21bf403321ee6ff05f by RazvanN7: Fix Issue 22857 - Segfault for malformed static if in imported template https://github.com/dlang/dmd/pull/15097
Comment #3 by dlang-bot — 2023-05-01T19:33:42Z
dlang/dmd pull request #15156 "merge stable" was merged into master: - 997b00bf45eb4ad2cd97c6cb872308e9797bcf0a by Razvan Nitu: Fix Issue 22857 - Segfault for malformed static if in imported template (#15097) https://github.com/dlang/dmd/pull/15156