From: Johan K. <joh...@id...> - 2002-02-11 13:11:28
|
This should be fixed already in 2.3.1. Please check and report. Johan ----- Original Message ----- From: Corvin Zahn <za...@za...> To: <sdc...@li...> Sent: Monday, February 11, 2002 1:14 AM Subject: [Sdcc-user] local static variable name conflict > hi, > > I have a problem with sdcc V2.3.0: > > The code: > ------------------------------- > > void a(void) > { > static char i = 0; > i++; > } > > void b(void) > { > char i; > i++; > } > > -------------------------------- > results in > > zahn@pegasus:testsdcc $ sdcc -c tt.c > tt.c(11):error *** Duplicate symbol 'i', symbol IGNORED > tt.c(11):error *** code not generated for 'b' due to previous errors > tt.c(11):warning *** in function b unreferenced local variable : 'i' > > Any suggestions? > > Thanks, > Corvin Zahn > > -- > Corvin Zahn <za...@za...> > > > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > > |