From: SourceForge.net <no...@so...> - 2004-10-05 08:06:52
|
Bugs item #1040468, was opened at 2004-10-05 01:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1040468&group_id=68108 Category: None Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong compiling of for-statement Initial Comment: I am a beginner with WinAVR but in my opinion i detected a major compiler bug: Version is 3.4.1. Following situation typedef struct { unsigned char element1; unsigned char element2; unsigned char element3; } SR1_Type; SR1_Type var1; function C_calculate() { char * P_var1; unsigned int sum=0; for (P_var1=&var1.element1; P_var1++; P_avr1<&var1.element3) { sum+=*P_var1; } the programm did not work. I had a look to the Assembler and i detected that it is wrong(unfortunately if have it not with me) i modified the program to a while construction and it worked pretty fine ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1040468&group_id=68108 |