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: [email protected]
Reporter: [email protected]
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)
--