Summary: no warning or error if unsigned variable is compared
                    to 0
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Trass3r <> 2011-11-14 18:15:49 PST ---
void main()
    uint i = 0;
    if (i < 0)
        assert(0, "never");

I think such a case means that something went subtly wrong and the variable's
type was intended to be signed, so there should be an error or warning.

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

Reply via email to