Bug 13578 – std.algorithm.sort fails in debug mode if member "init" is present

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-06T16:49:00Z
Last change time
2014-11-11T14:13:24Z
Assigned to
nobody
Creator
luis

Comments

Comment #0 by luis — 2014-10-06T16:49:40Z
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); }
Comment #1 by yebblies — 2014-11-11T14:13:24Z
This compiles fine for me with latest master (2.067)