[Issue 20331] New: checkaction=context segfaults when calling function literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 28 20:25:05 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20331

          Issue ID: 20331
           Summary: checkaction=context segfaults when calling function
                    literal
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

This following code produces a segfault when compiled with checkaction=context:

module segfaults;

void main() {
    bool function() check = () => true;

    assert(check());
}

--


More information about the Digitalmars-d-bugs mailing list