http://d.puremagic.com/issues/show_bug.cgi?id=7367

           Summary: wrong char comparison result
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-01-24 20:07:07 PST ---
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
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to