[Issue 3115] Illegal optimization to unsigned right shift (only array)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 18 05:18:31 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3115


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-11-18 05:18:30 PST ---
Here's a variation that doesn't even require the optimizer. In the code below,
>>>= gets changed into >>=.

----
void main()
{
  long[1] b = void;
  b[0] = -1L;
  b[0] >>>= 2;
  assert( (b[0]) == 0x3FFFFFFFFFFFFFFFL);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list