Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: gfortran ICEs on input with the advance keyword. Version-Release number of selected component (if applicable): gcc-gfortran-4.1.0-3 How reproducible: always Steps to Reproduce: 1.save the two attached source files (second one in next comment) 2.try compiling with gfortran -c <filename> 3. Actual results: $ gfortran gfortran_ICE.f90 gfortran_ICE.f90:0: 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. $ gfortran gfortran_ICE_short.f90 gfortran_ICE_short.f90:0: 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. Expected results: Either a successful build or an error message on what gfortran does not like. Additional info: The code builds under FC4 (gcc-gfortran-4.0.2-8.fc4). This is part of scientific code (octopus) that builds under some commercial compilers like Intel's, but the project wants to support gfortran as well. 4.0.x had other issues and the project hoped that 4.1 could be the one, but it bailed even earlier than 4.0.x. Even the syntax check with -fsyntax-only bails out with an ICE. I think this is maybe a candidate for http://gcc.gnu.org/bugzilla/, but since the ICE explicitely points us here, I'd rather post it first into bugzilla.redhat.com. Thanks.
Created attachment 126074 [details] Sample test file for testing the ICE
Created attachment 126075 [details] Sample test file for testing the ICE (minimal version)
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00836.html
Thanks, Jakub, I rebuilt the latest rawhide package including this patch and the sample files compile properly.
This is fixed in rawhide (4.1.0-4 and above).