Wood David wrote:
Thanks for your reply. I've managed to cut down the module to this very short module so I just get two errors, both - prior parameter's size depends on 'A':
Thanks for the example code.
Is the module syntax illegal or is it a bug?
No, the syntax is correct AFAICS. (If not, it would *also* be a bug, because GPC should have reported a syntax error then. ;-)
I suppose the different behaviour is rooted in the fact that modules have interface and implementation parts that are compiled separately (because they can even be in different files), while units are one piece. Therefore, while compiling module implementations, GPC loads the GPI files created during compilation of the interface, and some important piece of information (that is needed during the definition of a procedure, not for its use by importers) is apparently not stored in the GPI file (whereas for units, the original "forward" declaration from the interface is just retained during compilation of the implementation).
So I think I know now what to look for (and where).
If it is a bug, at least you can take comfort in knowing it can kill the DEC Pascal compiler too!
Yeah, but actually I prefer to emulate the features, not the bugs, of all other Pascal compilers. ;-)
Frank