With DMD 2.058head the following code asserts during runtime: void main(){ char a = '\x00'; char b = '\xFF'; int c = b; assert(a < c); // ok assert(a < b); // fail assert(a < cast(int)b); // fail }
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3cc9b41641964c415209296d074146346331209a fix Issue 7367 - wrong char comparison result
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/db4de5151064d13717185d01320fc495d73f71de fix Issue 7367 - wrong char comparison result