According to Christian Bockermann:
I have a little question concerning variant records and packed arrays. [...]
According to myself (Peter Gerwinski):
!! You have discovered a bug in GPC: The compiler had forgotten to store the capacity of the string in the variant record. I will fix it as soon as possible - thanks for the report.
To work around, manually assign `x.rec.name.capacity:= 3' before you assign a value to `x.rec.name'.
Here is the fix:
In `util.c', function `contains_file_or_schema_p()', change
case RECORD_TYPE:
to
case RECORD_TYPE: case UNION_TYPE:
Then it works.
Greetings,
Peter
PS to Christian: Gib Deinen E-Mails besser ein "Betreff". ;-)
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]