Summary: Right-shifting by 32 is allowed and broken
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Vladimir <> 2010-09-18 03:15:15 PDT 
const int x = 12345;
static assert(x>>32 == 0); // fails

It looks like x>>32==x when x is a 32-bit or smaller integer.
Same problem at runtime.

I guess that right-shifting by 32 should be forbidden.

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

Reply via email to