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
  • #1865
Closed
Open
Created Feb 22, 2012 by Bep Rinto@broGuest

sac2c fails to compile empty while loop

Bugzilla Link 919
Created on Feb 22, 2012 18:27
Resolution FIXED
Resolved on Feb 27, 2012 11:56
Version 1.00beta
OS Linux
Architecture PC
Attachments 919.sac

Extended Description

sac2c fails to compile the following program with the empty while loop.
Compilation succeeds after adding a statement to the while loop.
The sac2c message is:
ERROR: line 10  file: t.sac
ERROR: Identifier 'stop` used without previous definition
import ScalarArith: all;
use StdIO : all;
int main()
{
    if (argc() < 2) {
        printf("Need at least one arg\n");
    } else {
        stop = false;
        while (stop == false) {
        }
    }
    return 0;
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking