Crashed compiler, probably due to set comprehension
|
|
Bugzilla Link |
413 |
Created on |
Apr 14, 2008 14:57 |
Resolution |
FIXED |
Resolved on |
Apr 15, 2008 20:20 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
The specific version (-VV) is:
NAME: sac2c
VERSION: v1.00-beta (Buchette d'Anjou)
PLATFORM: linux-gnu_i686
BUILD: 15687 (product)
AT DATE: Thu Apr 10 18:32:16 BST 2008
BY USER: sah
ON HOST: obelix
This compiler asked me to file a bug report. This program produces the bug:
use StdIO: all;
use Array: all;
int main()
{
vect = [1,2,3,4,5,6,7,8,9];
mat = [vect, vect+10, vect+20];
e = 100;
ov = [1,3];
nmat = { iv -> all(iv < ov) ? genarray(shape(mat)+ov,e)[iv] : mat[(iv-ov)] };
print(nmat);
return(0);
}
The compiler produces the following output:
WARNING: line 10 file: bug.sac
WARNING: Cannot infer default for 'iv' as it is used as argument to a
WARNING: non-selection operation, using 0-vector as fallback
WARNING: line 10 file: bug.sac
WARNING: Cannot infer default for 'iv' as it is used as argument to a
WARNING: non-selection operation, using 0-vector as fallback
OOOPS your program crashed the compiler 8-((
Please send a bug report to bugs@sac-home.org.
For your convenience, the compiler has pre-fabricated a bug report in
the file "SACbugreport" which was created in the current directory!
Besides some infos concerning the compiler version and its
usage it contains the specified source file.
If you want to send that bug report to us you may simply use
mail bugs@sac-home.org < SACbugreport