www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20331] New: checkaction=context segfaults when calling

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 puremagic.com
          Reporter: moonlightsentinel disroot.org

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

module segfaults;

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

    assert(check());
}

--
Oct 28 2019