DCR doesn't remove dead parameters from functions
|
|
Bugzilla Link |
355 |
Created on |
Apr 24, 2007 19:35 |
Resolution |
INVALID |
Resolved on |
Apr 25, 2007 08:36 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
Summary says it all. I expected that some phase or another of sac2c would
remove the dead variable "junk" from the function prototype and call of foo.
However, this does not seem to be the case.
use Array: all;
use StdIO: all;
int[*] id(int[*] x)
{ return(x);
}
int[*] foo (int[*]x, int[*] junk2)
{
return(x*10);
}
int main()
{
junk = id(23);
x = iota(id(55));
z = foo(x,junk);
print(z);
return(1);
}