Edited again because it originally wasn\'t clear that I\'m trying to initialize the arrays at compile time, not at run time...
I\'ve got the following reduced
GCC/Clang support the following extension
typedef struct TestStruct { int length; int* values; }; TestStruct t = {3, (int[]){0, 1, 2}}; TestStruct t2 = {4, (int[]){0, 1, 2, 3}};