Bug 20331 – checkaction=context segfaults when calling function literal
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-10-28T20:25:05Z
Last change time
2019-12-10T12:07:45Z
Assigned to
No Owner
Creator
moonlightsentinel
Comments
Comment #0 by moonlightsentinel — 2019-10-28T20:25:05Z
This following code produces a segfault when compiled with checkaction=context:
module segfaults;
void main() {
bool function() check = () => true;
assert(check());
}
Comment #1 by dlang-bot — 2019-10-28T21:19:49Z
@MoonlightSentinel created dlang/dmd pull request #10513 "Issue 20331 - checkaction=context segfaults when calling function lit…" mentioning this issue:
- Issue 20331 - checkaction=context segfaults when calling function literal
https://github.com/dlang/dmd/pull/10513
Comment #2 by dlang-bot — 2019-11-02T07:22:26Z
dlang/dmd pull request #10513 "Issue 20331 - checkaction=context segfaults when calling function lit…" was merged into master:
- 4e85969f9d3c129b6595d9ecbd6e1a8d06a019fb by MoonlightSentinel:
Issue 20331 - checkaction=context segfaults when calling function literal
https://github.com/dlang/dmd/pull/10513