This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
int initialization bug ?
- To: help-gcc at gnu dot org
- Subject: int initialization bug ?
- From: "Pina Colada dude" <pinacolada at margaritaville dot com>
- Date: Fri, 20 Aug 1999 20:16:22 -0700
- Newsgroups: gnu.gcc.help
- Organization: MindSpring Enterprises
- Reply-To: "Pina Colada dude" <pinacolada at margaritaville dot com>
- Xref: wodc7nx0 gnu.gcc.help:627
Does gcc v2.8.1 have a problem initialzing an int within a for loop in the
following way? :
for(int k=0;k<255;k++)
{
....
}
for(int m=0;m<k;m++)
{
..
}
The above code just fails to execute the second loop at all and gives me a
warning about obsolete binding or something like that ! If I declare the
int's separately outside the loop arguments then everything works great !
Any ideas if this is a bug in GCC ?
TIA,
Regards,
PDC