I wrote a program with an own array class and got an unexpected behaviour.
I reduced the code as much as I can too keep this bug. Note that the program
makes no sense, but it should run completely.
The problem occurs with full optimization in release mode for 64bit under VS 2008 and VS 2010.
You find the complete source code in "steps to reproduce". The program exits
in the index operator method of the array class during an out of domain test.
This should not happen. I looked at the assembler code, which seems to be
I am not completely sure that this is a compiler bug, but several other people looked
at it and had no further idea for a programer mistake.