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 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2303
Closed
Open
Created Feb 26, 2022 by Sven-Bodo Scholz@sbsOwner

resolving global objects bug

The following code

int main()
{
    shp = [1];

    with {
          (_mul_SxV_(0,shp) <= iv < shp) {StdIO::print(iv); } : StdIO::stdin;
        } : propagate(StdIO::stdin) ;

    return 0;
}

crashes

sac2c -V
sac2c 1.3.3-MijasCosta-771-g499e7
build-type: RELEASE
built-by: "sbs" at 2022-02-20T11:53:21

in he debug version with v4, we learn:

**  5: Converting to static single assignment form ...
  **** Inserting variable declarations ...
  **** Converting type decls into type conversions ...
  **** Creating wrapper functions ...
  **** Running global object analysis ...
  **** Generating global object initialiser ...
  **** Resolving global objects ...
TRAVERSE ERROR: node of type 94:N_globobj found where 32:N_id was expected!



OOOOOOOPS, your program crashed the compiler 8-((
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking