I\'m writing a program in C++. The program has been working fine for Win32 (x86), and recently I\'ve tried compiling it natively for x64. Of course, stuff didn\'t work right
This bug may have something to do with compiler optimization -- it's interesting that the linker crashes in your release build (when full optimization would theoretically be turned on).
Does your debug build have optimization completely disabled (/Od)?
Visual Studio Help also contains a statement (under "Optimization Best Practices") discouraging try/catch blocks in 64-bit code.
If you turn off optimization in the release build, the linker doesn't crash. It also won't crash (but will reproduce the bad behavior) if you remove just the "continue" statement.
if (1==0) {
//continue;
}