Ok I have managed to reduce this to a sensible reproduce by as below:
$ cat X.c struct foo { unsigned long foo_A; int foo_B[]; };
void bar() { __builtin_offsetof(typeof(struct foo), foo_B[2]); }
$ gcc-4.4 -c X.c X.c: In function 'bar': X.c:8: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
Ok I have managed to reduce this to a sensible reproduce by as below:
$ cat X.c
struct foo {
unsigned long foo_A;
int foo_B[];
};
void bar()
__builtin_ offsetof( typeof( struct foo), foo_B[2]);
{
}
$ gcc-4.4 -c X.c //usr/share/ doc/gcc- 4.4/README. Bugs> for instructions.
X.c: In function 'bar':
X.c:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/