8086-toolchain
8086-toolchain copied to clipboard
c86 pointer increments
The following code causes the compiler to freeze: char* ptr = 0; ptr += 1;
Interestingly, the compiler works when revising the code like so: char* ptr = 0; ptr = ptr + 1;
I was able to reproduce this bug on both the CAEDM computers and my personal laptop. int pointers seem to work fine; however, its just char pointers that break it.
I'm creating this issue for future reference in case another student stumbles across the same problem.