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

Nested arrays don't work as advertised

Bugzilla Link 1015
Created on Aug 27, 2012 17:42
Version svn
OS Linux
Architecture PC
Attachments pl.sac

Extended Description

Created an attachment (id=925)
source code to reproduce fault
I tried to make a simple demo of nested array code, to see how
well it performs, but she no work:
sac2c pl.sac -irr_arr -O3 
   
**  1: Loading SAC program ...
  **** Locating source code ...
  Reading from file "./pl.sac" ...
  **** Running C preprocessor ...
  **** Parsing input file ...
./pl.sac error:11:16 token `;' expected, `char' token found
./pl.sac error:13:8 type expected, `word' found
ABORT: Failed to construct a syntax tree for `pl.sac'
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18159:18167:MODIFIED linux-gnu_x86_64
 (Mon Aug 27 09:25:14 EDT 2012 by sac)
The compiler complains about this line:
typedef nested char[.] word;
I'm assigning this to Clemens, inasmuch as he directed 
Roland's work, and I don't see any other documentation or
code examples kicking around.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking