[openbeos] Re: Open-beos-cvs digest, Vol 1 #1587 - 8 msgs

  • From: Tyler Dauwalder <tyler@xxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 15 May 2003 09:17:43 -0700

On 2003-05-15 at 08:47:28 [-0700], Jared Eldredge wrote:
>  
> > BTW, I hope, this is just another bug of our ancient gcc (at least
> > the
> > GeekGadgets one) -- it issues a warning when one declares the same
> > iteration variable in a subsequent loop, like:
> >   for (int i = ...) {}
> >   for (int i = ...) {}
> > 
> > Very annoying. Just another of innumerable bugs...
> > *sigh*
> > 
> > CU, Ingo
> 
> am i using something different than you?  i don't get that error 
> unless
> i'm in windows.  matter of fact, i get an error if i DON'T do that.
> 
> using BeIDE with gcc2.95....

Yeah, it looks like it's just the GeekGadgets one. :-P :-) I've got 
the standard R5 Pro version (2.9-beos-991026), and it quite happily 
takes:

for (int x = 0; x < 4; x++)
    dprintf("c");
for (int x = 0; x < 4; x++)
    dprintf("c");

But it fails with an error for:

for (int x = 0; x < 4; x++)
    dprintf("c");
for (x = 0; x < 4; x++)
    dprintf("c");

:-)

-Tyler

Other related posts: