Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2459
Closed
Open
Created Feb 25, 2025 by Sven-Bodo Scholz@sbsOwner

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking