[Bug c/27945] Packed struct of variable length has wrong size

2006-06-07 Thread alpt at freaknet dot org
--- Comment #3 from alpt at freaknet dot org 2006-06-08 03:14 --- You're right. on 3.4.x I get wrong results too. The only positive result I get is on 3.3.6. ~> You should note this is extension even on top of C99 so it might be correct ~> to change it. Yep, but it is a very elegant e

[Bug c/27945] Packed struct of variable length has wrong size

2006-06-07 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-08 03:00 --- > On a x86 with gcc-3.4.x/3.3.6 it prints: > pkt 65, foo 65 > pktII 65, bar 65 > (this is the right output) I don't get 65 with 3.4.0, I get 68 like 4.0.0 and above. earth:~>~/ia32_linux_gcc3_4/bin/gcc -O2 t.c earth

[Bug c/27945] Packed struct of variable length has wrong size

2006-06-07 Thread alpt at freaknet dot org
--- Comment #1 from alpt at freaknet dot org 2006-06-08 02:33 --- On gcc 4.0.2, PIII: pkt 68, foo 68 pktII 68, bar 68 -- alpt at freaknet dot org changed: What|Removed |Added -