Description of problem: While compiling a fortran 90 program, the compiler segvs. Output is: f95 -c utils_2005.f90 In file utils_2005.f90:506 IF (D) 5,25,15 1 Warning: Obsolete: arithmetic IF statement at (1) In file utils_2005.f90:510 IF (D) 5,25,20 1 Warning: Obsolete: arithmetic IF statement at (1) utils_2005.f90: In function âopenerâ: utils_2005.f90:1076: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. Line 1076 reads: Read(sval(5),*) irecl Version-Release number of selected component (if applicable): gcc-gfortran-4.0.2-8.fc4 How reproducible: Every time, multiple machines. Steps to Reproduce: 1. compile code (file attached) Actual results: Compiler dumps core. Expected results: Compiler compiles code or issues error diagnostics explaining syntactical error with the code. Additional info: source file which causes error attached - utils_2005.f90
Created attachment 124670 [details] Source code that exhibits the error.
You need to also provide sources that contain the modules you use (sputarrays and sputparameters), otherwise this can't be reproduced.
Created attachment 124679 [details] Sputarrays source code
Created attachment 124680 [details] Sputparameters source code
Created attachment 124681 [details] Generated sputarrays.mod file
Created attachment 124682 [details] Generated sputparameters.mod file.
Hopefully that is what you need. Please let me know if anything else is missing.
I've just upgraded my test box to the x86_64 version of Fedora Core 5 test 3 and I can report that the gcc 4.1 fortran shipped with that can compile this code just fine and produce a working executable. An upgrade to 4.1 fixes this problem.
Fortran bugfixes are no longer being backported to gcc-4_0-branch and doing that backporting just for FC4 would be very time consuming.