new with GCC TRUNK: LANG=C /home/marcus/projects/gcc.trunk/BIN/bin/gcc -m32 -c -O2 ~/generated.i /home/marcus/generated.i: In function 'test_pack_ABC': /home/marcus/generated.i:12: error: object with variably modified type must have no linkage This built fine with previous gcc.
Created attachment 17639 [details] generated.i gcc -c -O2 generated.i
(((long)(unsigned int)&(((ABC *)0)->abcC)) is not a valid C90/C99 constant expression. Use the offsetof macro from stdlib.h.
Indeed.