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
  • #1651
Closed
Open
Created Sep 05, 2005 by Stephan Herhut@sahGuest

Compilation breaks for simple modarray ops if TUP is enabled

Bugzilla Link 111
Created on Sep 05, 2005 18:01
Resolution FIXED
Resolved on Sep 16, 2005 17:37
Version 1.00beta
OS SunOS
Architecture Sun
Attachments tmp.sac

Extended Description

try the given example with:
sac2c -doTUP bug.sac
the error given is:
ABORT: line 196  file: ArrayBasics.sac
ABORT: Component #0 of inferred return type (int[*]) is not within int[+]
removing one of the two assignments (modarrays) for a resolves the error.
example:
import Array:all;
int main()
{
  a = [ [1,2,3], [4,5,6], [7,8,9]];
  a[0] = [11, 0, 0];
  a[1] = a[2];
  return(a[[0,0]]);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking