http://d.puremagic.com/issues/show_bug.cgi?id=4887
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 AssignedTo: nob...@puremagic.com ReportedBy: thecybersha...@gmail.com --- Comment #0 from Vladimir <thecybersha...@gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------