Records and linksign pragma error
There is a bug in the construction of SACARGunwrapUdt for structs with more than one field. It manifests with a linksign error and is triggered when exporting an imported structure. Consider:
module moda;
export all;
struct A {
int x;
double y;
};
This compiles fine and does not provide any SACARGunwrapUdt. Once you compile this module:
module modb;
import moda: all;
export all;
you get:
./modb.sac:3:1: error:
Pragma 'linksign' illegal: mappings allowed exclusively between parameters without descriptor
in function SACARGunwrapUdt
in pc:fpc
when compiling with 2.0.0-Tintigny-45-g0754b
.