CFfundef.sac failure in CF unit tests
|
|
Bugzilla Link |
867 |
Created on |
Sep 02, 2011 15:37 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
In the course of cleaning up the CF unit test suite,
I managed to generate this error with -nocf:
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17585:MODIFIED linux-gnu_x86_64
(Thu Sep 1 22:23:35 EDT 2011 by sac)
cat CFfundef.sac
bool[*] id( bool[*] y)
{ return(y);
}
int main()
{
cond = [true,true];
c = _sel_VxA_([0],cond);
if (c) {
z = 42;
} else {
z = 666;
}
z = _sub_SxS_(42,z);
return(z);
}
sac@rattler:~/sac/testsuite/optimizations/constantfolding$ sac2c CFfundef.sac -nocf -v1
ERROR: line 13 file: CFfundef.sac
ERROR: loop variable "c" is being used inconsistently in function
ERROR: main__Cond_0; conflicting types are bool and #393: in [ --, bool{1}]
ERROR: le <> ge <>
The IL looks OK to me; I don't understand what TC is complaining about.