Compilation breaks for simple modarray ops if TUP is enabled
|
|
Bugzilla Link |
111 |
Created on |
Sep 05, 2005 18:01 |
Resolution |
FIXED |
Resolved on |
Sep 16, 2005 17:37 |
Version |
1.00beta |
OS |
SunOS |
Architecture |
Sun |
Attachments |
tmp.sac |
Extended Description
try the given example with:
sac2c -doTUP bug.sac
the error given is:
ABORT: line 196 file: ArrayBasics.sac
ABORT: Component #0 of inferred return type (int[*]) is not within int[+]
removing one of the two assignments (modarrays) for a resolves the error.
example:
import Array:all;
int main()
{
a = [ [1,2,3], [4,5,6], [7,8,9]];
a[0] = [11, 0, 0];
a[1] = a[2];
return(a[[0,0]]);
}