http://d.puremagic.com/issues/show_bug.cgi?id=3577

           Summary: Wrong precedence for opPow
           Product: D
           Version: future
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2009-12-05 07:40:18 PST ---
opPow does not follow mathematically correct precendence.

import std.stdio;

void main() {
    writeln( 2 * 2.0L ^^ 3 + 1);  // 65
    writeln( 2.0L ^^ 3 * 2 + 1);  // 17
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to