c/6607: Inconsisitency using right shift operator (signed vs. unsigned shift)

neil@gcc.gnu.org neil@gcc.gnu.org
Wed May 8 10:38:00 GMT 2002


Synopsis: Inconsisitency using right shift operator (signed vs. unsigned shift)

State-Changed-From-To: open->feedback
State-Changed-By: neil
State-Changed-When: Wed May  8 10:38:30 2002
State-Changed-Why:
    Can you reproduce this behaviour for a shift of less than 32 bits?
    A shift of the same number of bits as the width of the
    type gives undefined behaviour, so the testcase you post
    is not a bug as-is.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6607



More information about the Gcc-bugs mailing list