https://issues.dlang.org/show_bug.cgi?id=13578
Issue ID: 13578
Summary: std.algorithm.sort fails in debug mode if member
"init" is present
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
This fails to compile, unless we rename the member "init":
unittest
{
import std.algorithm;
class C
{
int x;
bool init;
}
C[] c;
c.sort!((a,b) => a.x < b.x);
}
--
