Project

General

Profile

Bug #327

C++ integer shift operators

Added by John Abbott over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Portability
Target version:
-
Start date:
27 Feb 2013
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

The effect of the integer shift operators in C++ is UNDEFINED if the shift amount is greater than or equal to the wordsize.

2013-02-26 JAA got burned by this in OrdvArith


Related issues

Related to CoCoALib - Bug #326: C++ nasty surprisesIn Progress2013-02-27

History

#1 Updated by John Abbott over 11 years ago

  • Status changed from Resolved to Closed
  • Assignee set to John Abbott

JAA believes he has checked all CoCoALib code, and that there are no suspect uses of the shift operators.

The fact that i/o operators are syntactically the same did not help!

Also available in: Atom PDF