Description of problem: /usr/bin/gcc -V4.0 -Dva_copy=__va_copy -I/edgsrc/edg/release_3.8/cinclude -c -std=gnu99 -O -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes nis_call.int.c rcc: diagnostics generated from compilation of nis_call.int.c: nis_call.c: In function ‘first_shoot’: nis_call.c:526: internal compiler error: in modified_type_die, at dwarf2out.c:8463 Version-Release number of selected component (if applicable): der<1040>:gcc -V4.0 --version x86_64-redhat-linux-gcc-4.0 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18) How reproducible: Just compile the attached file. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 142288 [details] Preprocessed cc source file form glibc-2.4 nis/nis_call.c
Simplified testcase: /* { dg-do compile } */ /* { dg-options "-g -O" } */ extern void foo (void); static void baz (int i) { foo (); typedef char A[i]; struct { A b; } *x = 0; } void bar (i) { baz (i); }
Tracking upstream.