sac2c doesn't know beans from scientific notation
|
|
Bugzilla Link |
1064 |
Created on |
Apr 19, 2013 21:05 |
Resolution |
FIXED |
Resolved on |
Jul 11, 2014 08:45 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
int main()
{
A = iota( 1000000);
B = iota( 1e6);
StdIO::print( shape( A));
StdIO::print( shape( B));
return( 0);
}
This prints the following, when compiled:
sac2c crud2.sac -v1
sac@rattler:~/sac/demos/benchmarks/livermore_loops/for_comparison/loop15$ a.out
Dimension: 1
Shape : < 1>
<1000000 >
Dimension: 1
Shape : < 1>
< 1 >
sac@rattler:~/sac/demos/benchmarks/livermore_loops/for_comparison/loop15$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18093 linux-gnu_x86_64
(Fri Apr 19 15:27:48 EDT 2013 by sac)
I consider the second result to be incorrect.