Description of problem: This is trying to compile NCAR Graphics 4.4.1 with gfortran: $ gfortran -c gesc.f gesc.f: In function 'gesc': gesc.f:237: internal compiler error: Segmentation fault Version-Release number of selected component (if applicable): gcc-gfortran-4.0.0-8 How reproducible: everytime
Created attachment 116812 [details] Fortran source for the above compile
This appears to be in the GCC bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21406 , duplicate of: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15966
Then it is also fixed in gcc-gfortran-4.0.1-3 in rawhide.
Any chance we'll see an update that fixes this for FC4?
Well, not completely fixed. With gcc-gfortran-4.0.1-4.fc4 I get: $ gfortran -c gesc.f gesc.f: In function 'gesc': gesc.f:237: internal compiler error: in gfc_convert_array_to_string, at fortran/trans-io.c:414 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. Perhaps not all of the fixes in pr15966 are in, or this is a new bug? Don't see the exact message in the gcc bugzilla, but obviously this is still related.
Minimal testcase is: subroutine foo(x,y) integer x, z character*(*) y(x) read(y,500) z return 500 format(I10) end subroutine
The testcase given in Comment #6 does not give me an error with 4.1 build with patches for array I/O incorporated. Evidently its fixed. Soon as we submit these patches for review this can be confirmed by others.
Yeah, fix verified with gcc-gfortran-4.1.0-0.15 in rawhide. WONTFIX for gcc 4.0.x.