[Bug c++/21756] inconsistent result of left shift

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 25 19:52:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-25 19:34 -------
This is undefined as per 5.8/1:
"The behavior is undefined if the right operand is negative, or greater than or equal to the length in 
bigs of the promoted left operand".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21756



More information about the Gcc-bugs mailing list