Possible bug in avr-gcc, any second opinions?
I'm fairly sure that the following is a bug in AVR-GCC, but I'm not sure. Basically sizeof should tell you the size in memory of something in memory. So you can do sizeof(char) or sizeof(myArray) and it will tell you how many bytes are taken up. If I do sizeof(myArray) where myArray is a local array of chars the answer is correct. If I pass the value as a parameter then the result of sizeof(myArray) is always 1.
Does anyone have any idea's or explainaitions? This code is being put on an Attiny2313.
Thanks in advance,