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
  • #1427
Closed
Open
Created Oct 09, 2006 by Kai Trojahner@ktrGuest

Additional parameter BEFORE reference arg kill sac2c in phase 18

Bugzilla Link 300
Created on Oct 09, 2006 17:22
Resolution FIXED
Resolved on Oct 09, 2006 18:26
Version 1.00beta
OS Linux
Architecture PC
Attachments rlctest.sac, RandLC.sac

Extended Description

Function rlctest breaks the compiler:
use RandLC: all;
int rlctest( int i, RandLC &rlc) {
  j = _toi_S_( randlc(rlc));
  return(j);  
}
int main() {
  tran = 314159265d; amult = 1220703125d;
  rlc = create_randlc( tran, amult);
  i = rlctest(2, rlc);
  delete_randlc( rlc);
  return(i);
}
with error message "undeclared identifier"
** 18: Invoking C compiler: ...
gcc: unrecognized option `-R.'
a.out.c: In function `SACf__MAIN__rlctest__i__SACt_RandLC__RandLC':
a.out.c:360: warning: assignment makes integer from pointer without a cast
a.out.c:360: `SAC_arg_1__desc__p' undeclared (first use in this function)
The error message does not appear if we put the reference argument to the front
of the argument list, or remove it entirely.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking