I just finished tracking down a Visual C++ compiler bug. This bug exists in the optimizer in VC 2003 and 2005. It does not exist in VC 2008. It only happens with optimization turned on (ie, Release build). Finding this bug was interesting in that we had