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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1232
Closed
Open
Created Sep 02, 2011 by Robert Bernecky@rbeDeveloper

CFfundef.sac failure in CF unit tests

Bugzilla Link 867
Created on Sep 02, 2011 15:37
Version svn
OS Linux
Architecture PC

Extended Description

In the course of cleaning up the CF unit test suite,
I managed to generate this error with -nocf:
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 17585:MODIFIED linux-gnu_x86_64
 (Thu Sep  1 22:23:35 EDT 2011 by sac)
cat   CFfundef.sac
bool[*] id( bool[*] y)
{ return(y);
}
int main()
{
 cond = [true,true];
 c = _sel_VxA_([0],cond); 
 if (c) {
  z = 42;
 } else {
  z = 666;
 }
 z = _sub_SxS_(42,z);
return(z);
}
sac@rattler:~/sac/testsuite/optimizations/constantfolding$ sac2c  CFfundef.sac  -nocf   -v1
ERROR: line 13  file: CFfundef.sac
ERROR: loop variable "c" is being used inconsistently in function
ERROR: main__Cond_0; conflicting types are bool and #393: in [ --, bool{1}]
ERROR: le <> ge <>
The IL looks OK to me; I don't understand what TC is complaining about.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking