title: Why doesn't GCC generate a warning for loss of resolution?
body: <p>Consider the following code fragment:</p>
  
  <pre><code>long long someVar64 = 0LL;
  int someVar32 = someVar64;
  </code></pre>
  
  <p>In case it's not obvious, there's a potential bug here in that the 64-bit value is being assigned to a 32-bit value, resulting in loss of bits. In this case it's fine because we don't care about the upper bits for 0 but if I change the constant I could easily create a bug.</p>
  
  <p>Why doesn't GCC (4.4.3) generate a warning for this code? I recall that older versions used to.</p>