[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] avr-gcc (GCC) 3.4.5 Bug: copying structure through pointe
From: |
cajus . hahn |
Subject: |
[avr-gcc-list] avr-gcc (GCC) 3.4.5 Bug: copying structure through pointer will destroy the pointer |
Date: |
Mon, 6 Feb 2006 21:22:05 +0100 |
Unlike my previous report
*struct_pointer = struct;
struct_pointer++;
works!
But
*struct_pointer++ = struct;
or
memcpy(struct_pointer++, &struct, sizeof(struct));
will not work.
I must have mixed up some of my testing results. Thanks to lfmorrison from
AVRfreaks.
Cajus