[Issue 19045] New: [ICE] Casting from real to ulong in comparison causes fails to compile
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jul  2 00:35:32 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19045
          Issue ID: 19045
           Summary: [ICE] Casting from real to ulong in comparison causes
                    fails to compile
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: computermatronic at gmail.com
Casting from a real to a ulong in a comparison does not compile, resulting in
an internal compiler error.
Test case:
void main() {
        real r = 10;
        bool b = cast(ulong)r == 0;
}
Output:
Internal error: dmd\backend\cgcod.c 1688
--
    
    
More information about the Digitalmars-d-bugs
mailing list