[Issue 3671] New: x^^3 gives wrong result when x is a floating-point literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 4 03:30:59 PST 2010


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

           Summary: x^^3 gives wrong result when x is a floating-point
                    literal
           Product: D
           Version: 2.038
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at kyllingen.net


--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-01-04 03:30:57 PST ---
x^^3 evaluates to x^^2 when x is a floating-point literal.

  writeln(2.0^^3);  // prints 4

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


More information about the Digitalmars-d-bugs mailing list