Hi,
I've been using conformant arrays in procedure declarations for ages, but recently I was given a troublesome module which had a number of procedure declarations, each with conformant parameters. When compiling the exported procedure, it actually caused our DEC Pascal compiler to crash (the stack dump suggesting it was whilst trying to build a conformant expression). Trying our faithful gpc 2.1 compiler, I got about 50 polite error messages "prior parameter's size depends on xyz" where xyz is a conformant array bound. However I can't figure out what has triggered this error.
Can anyone shed any more light on how this may occur?
Regards
David Wood QinetiQ, Farnborough
The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
Wood David wrote:
I've been using conformant arrays in procedure declarations for ages, but recently I was given a troublesome module which had a number of procedure declarations, each with conformant parameters. When compiling the exported procedure, it actually caused our DEC Pascal compiler to crash (the stack dump suggesting it was whilst trying to build a conformant expression). Trying our faithful gpc 2.1 compiler, I got about 50 polite error messages "prior parameter's size depends on xyz" where xyz is a conformant array bound. However I can't figure out what has triggered this error.
I've recently seen this error message in some other circumstances, also related to modules. They don't seem to occur with BP units, so if you can easily try this, you might want to find out if this also applies to your bug.
If you can provide a simple test case, I'd appreciate this. Otherwise, you can wait until I fix the other bug and hope that this will cover your case as well.
Frank