Simple compilation of the attached Fortran module causes gfortran to segfault. Version-Release number of selected component (if applicable): gcc-gfortran-4.1.1-30 (tested on i686 and x86_64, Fedora Core 6) How reproducible: Every time Steps to Reproduce: 1. Try to compile the attached Fortran module with "gfortran -c testfunc.F90" Actual results: gfortran dies with a segfault (pasted output below): testfunc.F90: In function 'testfunc': testfunc.F90:32: internal compiler error: Segmentation fault Expected results: gfortran compiles testfunc.F90 to testfunc.o. Additional info: gfortran functions correctly under Fedora Core 5 (gcc-gfortran-4.1.1-1.fc5), at least on i686 (don't have an FC5 x86_64 machine to test it on right now). The attached testcase is a minimal example from a large Fortran 90 application, which now fails to compile due to the upgrade from FC5 to FC6.
Created attachment 139702 [details] Test Fortan module
I have the similar problem when I tried to compile the "Hello World!" C program. The "internal compiler error: Segmentation fault" error message was given. The command: gcc -c hello.c gcc version: 4.1.1-30 hardware: athlon
Wrt comment #2, please don't hijack bugs with completely unrelated stuff. This bugreport is about a particular bug in Fortran frontend (which has been fixed already in CVS and will be fixed in next gcc-gfortran rpms), you are compiling a C program. If your bug is reproducable, then file a different bug with all the details needed to reproduce it (preprocessed source, command line options), but if you are trying just a simple hello world program, it is much more likely that you have hardware problems.
PR29641 fix backported in gcc-4.1.1-32.