Bug? Compiler reports unreachable statement


Well-Known Member
Licensed User
Longtime User
If you create a Do While True and fail to exit upon reaching your objective, the compiler is good enough to recognize this, but instead of indicating an inability to EXIT the loop, it says that one of the lines within the loop are "unreachable".
The line is in fact reachable by logic, but the error is misleading.
By adding exit logic, the unreachable line (which remains), compiles perfectly.
It is great that the compiler notices this, but the error message could be clearer.