https://issues.dlang.org/show_bug.cgi?id=18315

          Issue ID: 18315
           Summary: wrong code for `i > 0`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: ag0ae...@gmail.com

Found by kdevel who posted to D.learn:
https://forum.dlang.org/post/nbcmkpeyfoqljulmf...@forum.dlang.org

----
void main ()
{
   int i = int.min;
   bool b = i > 0;
   assert(!b); /* fails */
}
----

--

Reply via email to