www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16649] New: Header gen skips parens

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 puremagic.com
          Reporter: temtaime 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 ^

--
Oct 29 2016