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 400
    • Issues 400
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1894
Closed
Open
Created Apr 27, 2013 by Robert Bernecky@rbeDeveloper

Code generator fails to generate guard code for AL unit test guardSimple.sac

Bugzilla Link 1071
Created on Apr 27, 2013 20:42
Resolution FIXED
Resolved on Oct 01, 2013 20:21
Version svn
OS Linux
Architecture PC

Extended Description

The following program dies in alloc.c when compiled with no options:
int main()
{
 v1 = id( [ 42]);
 gV, p2 = _non_neg_val_V_( v1);
 gS = _sel_VxA_( [0], gV);
 z = _sub_SxS_(gS , 42);
 return( z); 
}
int[*] id( int[*] y)
{
 return(y);
}
 sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18120 linux-gnu_x86_64
 (Sat Apr 27 15:38:47 EDT 2013 by sac)
Failure mode:
** 16: Introducing memory management instructions ...
  **** Unshare index vectors in WL-folds ...
  **** Propagating constants ...
  **** AUD/SCL distinction ...
  **** Making copy operations explicit ...
  **** Introducing explicit allocation statements  ...
memory/alloc.c:308 Assertion "als->dim != NULL" failed!
alloc requires a dim expression!
If someone can tell me how to write an alloc.c thingy for
a function that has two results, I'll fix it.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking