http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49640
Summary: Internal compiler in C99 code (using variable-length arrays) and OpenMP Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: doriankra...@web.de Hello, the attached code fails to compile with gcc 4.5.0 when enabling OpenMP: [kraused@cub ~]$ gcc -c -std=gnu99 test.c [kraused@cub ~]$ gcc -c -std=gnu99 -fopenmp test.c test.c: In function 'convert_u8_f32.omp_fn.0': test.c:31:9: internal compiler error: in expand_one_var, at cfgexpand.c:953 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. The gcc version is 4.5.0: [kraused@cub ~]$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/share/apps/gcc/4.5.0/gcc_412/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=/share/apps/gcc/4.5.0/gcc_412 --with-mpfr=/share/apps/mpfr/2.4.2/gcc_412 --with-gmp=/share/apps/gmp/5.0.1/gcc_412 --with-mpc=/share/apps/mpc/0.8.2/gcc_412 --enable-languages=c,c++,fortran Thread model: posix gcc version 4.5.0 (GCC) Btw. the code also fails to compile with the 4.1.2 gcc on my RHEL box: [kraused@icsprec03 ~]$ gcc -c -std=gnu99 -fopenmp convert.c convert.c: In function ‘convert_u8_s32.omp_fn.0’: convert.c:27: internal compiler error: in make_decl_rtl, at varasm.c:893 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccsIbyBy.out file, please attach this to your bugreport. [kraused@icsprec03 ~]$ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-50) Unfortunately I don't have a newer gcc available right now for testing.