[Issue 16649] New: Header gen skips parens
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Oct 29 08:23:22 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16649
          Issue ID: 16649
           Summary: Header gen skips parens
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: temtaime at gmail.com
It makes from
 sign = data.isZero() ? false : sign ^ (y < 0);
a
sign = data.isZero() ? false : sign ^ y < 0;
which gives
Error: y < 0 must be parenthesized when next to operator ^
--
    
    
More information about the Digitalmars-d-bugs
mailing list