From Bugzilla Helper: User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.18-17.8.0 i686) Description of problem: I created some code with a variable sized type within a struct typedef, then tried to initialize it with data from another array (improper code). This caused gcc3 to segfault. Seems to only occur with bas code, so probably not a serious problem, except that segfaults are always bad. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. run gcc3 -c on the code listed in Additional Info. 2. 3. Actual Results: bug.c:10: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. Expected Results: This is what gcc 2.9x gives: bug2.c:3: array size missing in `points' bug2.c:8: incompatible types in initialization bug2.c:8: initializer element is not constant bug2.c:8: (near initialization for `p1.points[0][0]') Additional info: /* Example bug source (nice and short) */ typedef struct { int n; float points[][2]; } polygon_t ; float p1_points[][2]={{1,2},{3,4}}; polygon_t p1 = { 2, p1_points };
I've checked the current state of redhat gcc3 branch (gcc-3_2-rhl8-branch). The bug was gone. Therefore we are closing the case.