Martin G C Davies wrote:
[...]
and I get a core dump with gpc-20021111. I used to get a core dump with earlier versions until I used the kludge of the duplicate variable - but this is now illegal. The underlying problem appears to be something to do with file data structures not being initialized.
Indeed, this is a known bug with modules (same as with strings in module interfaces). The kludge with the duplicate variable worked because it effectively made the variable belong to the main program (where initialization works) and gave the module an external declaration. (Of course, this was not realiable, since in the future (with qualified identifiers) it would be two distinct variables.) A similar kludge could be realized now by giving both declaration different identifiers, but the same asmname ...
A better kludge would be to use units, or to explicitly initialize the variable in the module:
to begin do Initialize (statfile);
Frank