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 403
    • Issues 403
    • 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
  • #2078
Closed
Open
Created Jun 29, 2008 by Robert Bernecky@rbeDeveloper

-noOPT bug: Code gen dies w/inconsistant dimensions/sizes found

Bugzilla Link 441
Created on Jun 29, 2008 20:42
Resolution FIXED
Resolved on Jul 10, 2008 17:59
Version 1.00beta
OS Linux
Architecture PC

Extended Description

This code dies in icm2c_basic.c with the above error, when compiled with:
sac2c -noprelude -noopts todbug.sac
/* dies in code generator with inconsistent size/dim:
    sac2c -noopt -noprelude todbug.sac 
*/
module bugme;
export {bugger};
int[*] bugger ()
{
  x = 0;
  for (ib=0; _le_SxS_(ib, 3); ib = _add_SxS_(ib, 1)){
      x = with { ([0] <= [ix] <= [8])
           : 2;} 
           : genarray([9], 666);
  }
  return( x);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking