Interestingly, if embarrassingly, the problem turned out to be buried in an include file which someone, helpfully trying to increase the "readability" of some code somewhere in the project, which had a preprocessor directive that redefined TOP as 0, that's zero. So GOTO TOP was being...