Re: [avr-gcc-list] Possible minor bug

2016-08-02 Thread Nigel Winterbottom
> struct color { > uint8_t r; > uint8_t g; > uint8_t b; > } color = (struct color){ 255, 255, 255 }; Compiles fine for me using this version: nigel@E3510:~$ avr-gcc --version avr-gcc (AVR_8_bit_GNU_Toolchain_3.5.2_1680) 4.9.2 -- Nigel ___ AVR-GCC-lis

Re: [avr-gcc-list] Possible minor bug

2016-08-02 Thread Georg-Johann Lay
On 02.08.2016 03:09, Eric Tang wrote: Hi avr-gcc mailing list, I think I have discovered a minor bug. I get the "initializer element is not constant" error when I try to compile the following code with avr-gcc. If I remove the cast, the code compiles without issue. However, its presence does not