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