← Back to index
|
Original Bugzilla link
Bug 6112 – Odd behavior of char comparison for ordering
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-06-05T22:04:00Z
Last change time
2015-06-09T05:14:44Z
Assigned to
nobody
Creator
andrei
Comments
Comment #0
by andrei — 2011-06-05T22:04:22Z
Comment #1
by andrei — 2011-06-05T22:06:56Z
void main() { assert(char.min < char.max); //pass auto a = char.min; auto b = char.max; assert(a < b); // fails }
Comment #2
by lt.infiltrator — 2014-03-19T18:34:36Z
This compiles and runs without asserting as of v2.065. (Also did (b > a) and (a != b) checks, to check them all.)
Comment #3
by andrei — 2014-03-19T18:37:26Z
thx