Summary: Integer operations promote too much
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-01-05 18:17:38 PST ---
Created an attachment (id=861)
Code with integer promotion

When summing two shorts, they should not be both promoted to int, especially
since this reduces the ability to pack things in registers.

I've attached code which demonstrates summing two shorts as they are both
promoted to int. The code will not build, with an error explaining that both
parameters have been promoted, leading to the expression being of type int
rather than short.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to