Summary: dmd allows negative values to be assigned to an uint
           Product: D
           Version: 1.050
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Qian Xu <> 2009-11-02 04:16:35 PST 
Description: "uint i = -1" is allowed by dmd 1.050. 
Expectation: A warning or an error should be shown by compiling the code.

I misspelled int as uint. A boolean expression (if i < 0) always equals false.
It took me long time to debug my code. Finally I have found out, that the value
i is not -1.

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

Reply via email to