ArrayFormat dies dismally on double data
|
|
| Bugzilla Link |
555 |
| Created on |
Aug 14, 2009 22:49 |
| Version |
1.00beta |
| OS |
Linux |
| Architecture |
PC |
| Attachments |
bugformat.sac |
Extended Description
sac2c Build #16335
int main()
{
v = [ 9.884995e+06, 1.031330e+14, 9.885003e+06, 1.082900e+14 ];
StdIO::print(v);
StdIO::show(v);
return(0);
}
produces this:
a.out
Dimension: 1
Shape : < 4>
<9.884995e+06 1.031330e+14 9.885003e+06 1.082900e+14 >
*** SAC runtime error
*** line 152
*** argument #1 of "_sel_VxA_" should be legal index into argument #2;
*** types found: int[1]{1} and char[1]
Clearly, double vector formatting code needs work.