On Tue, 20 Apr 1999, Ernst Steenbrink wrote:

> Dear support,
> 
> I have noticed the following :
> When I debug the following code in Codewarrior :
> 
> static void myfunc(void )
> {
>       int x; // this is not the exact code but it will demonstrate my point.
>       int y;
>       x = 1;
>       y =5;
> }
> 
> and step through it, the integers will have the same value in the
> variables window. 
> So when y = 5 is executed, x also becomes 5 in the variables window.
> I have tried the same after reinstalling cw5 without the patch and it
> worked as it should have. 

Have you tested this with some real code, or with optimizations disabled?
Optimizing that exact code might easily turn x and y into the same
variable. (Or, preferably, get rid of them entirely.)

-- 
Kenneth Albanowski ([EMAIL PROTECTED], CIS: 70705,126)


Reply via email to