Maurice Lombardi wrote:
I have made a native building of the same gpc-20010417. This time dostest runs without error. In particular the y2k.pas error present in the previous gpc-20010409 when running in a W98se DOS box, and not in bare DOS, has disappeared. Such an erratic behaviour points to some erring pointer or uninitialized variable, but is it on gpc or on W98 dos box ? For reference the resulting gpc2953b.zip and the gcc2953s2.zip I have used (slight changes with respect to yours) have been uploaded to the directory
With the other problem it was (something like) an unitialized variable in GPC as Andris discovered. In this case I don't think so. (Though it's theoretically possible that an uninitialized variable in the compiler causes it to produce wrong code which makes the program fail at runtime like this, but this seems very unlikely, especially if the same executable fails reproducably in Windoze and not in plain Dos.)
Frank