[Issue 7367] New: wrong char comparison result
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jan 24 20:07:08 PST 2012
    
    
  
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: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list