This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21756] inconsistent result of left shift
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2005 19:34:36 -0000
- Subject: [Bug c++/21756] inconsistent result of left shift
- References: <20050525192637.21756.wb@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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