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
  • #1145
Closed
Open
Created Jan 12, 2013 by Robert Bernecky@rbeDeveloper

EWL doesn't like empty array WLs

Bugzilla Link 1043
Created on Jan 12, 2013 15:29
Version svn
OS Linux
Architecture PC

Extended Description

sac2c bug.sac
...
** 10: Enhancing with-loops ...
  **** Introducing explicit accumulators ...
  **** Adding default partitions ...
  **** Applying constant folding ...
  **** Applying common subexpression elimination ...
  **** Generating full with-loop partitions ...
OOOOOOOPS, your program crashed the compiler 8-((
cat bug.sac
use Array:all;
int main()
{
  x = [:int];
  z = with {
        ( [0] <= iv < _shape_A_( x)) : 42;
        } : modarray(x);
 StdIO::print(z);
 return(0);
}
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18051 linux-gnu_x86_64
 (Fri Jan 11 18:14:26 EST 2013 by sac)
I ran into this while trying to fault-isolate a bug that
shows up in CF, apparently due to WLUR ending up in the
same situation as above.
I'll leave this for someone in Edinburgh to fix.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking