[Issue 20100] New: Segfault with checkaction=context on struct comparison

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 3 15:26:19 UTC 2019


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

          Issue ID: 20100
           Summary: Segfault with checkaction=context on struct comparison
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

The following snippet segfaults DMD (and LDC) when using -checkaction=context:

types.d
--------------------
struct Tuple {
        bool opEquals(Tuple) { return true; }
}

void main() {
        Tuple t1;
        assert(t1 == t1);
}
--------------------

dmd -checkaction=context types.d

=> Segmentation fault (core dumped)


This snippet is a reduced test case from std.typecons (which is currently only
usable without this switch)

--


More information about the Digitalmars-d-bugs mailing list