Andrei Alexandrescu <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #23 from Andrei Alexandrescu <>  2009-08-08 
09:39:54 PDT ---
(In reply to comment #22)
> (In reply to comment #21)
> I'm only worrying about D2 where implicit narrowing conversions is part of the
> spec. ulong%1000 should implicitly allowed when assigning to an integer. 
> Should
> it be a distinct bugzilla entry?

Range value propagation, which was implemented recently, should take care of
this. It's among the simplest examples that should work with range value
propagation. The compiler must infer that a % 1000 has range -999 through 999
and therefore should allow it to fit in a short or int.

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

Reply via email to