https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58787
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |NEW Resolution|FIXED |--- --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > No longer ICEs with r238822. It still fails for me: [book15] f90/bug% /opt/gcc/gcc7p-238822p2/bin/gfortran pr58787.f90 pr58787.f90:15:27: pr58787.f90:10:7: USE string_utilities_mod 2 pr58787.f90:15:27: FUNCTION array_to_string(array) RESULT(str) 1 Error: Procedure 'array_to_string' at (1) is already defined at (2) pr58787.f90:15:34: FUNCTION array_to_string(array) RESULT(str) 1 Error: Cannot change attributes of USE-associated symbol array_to_string at (1) pr58787.f90:16:33: CHARACTER(LEN=1) :: array(1) 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr58787.f90:17:47: CHARACTER(LEN=SUM(LEN_TRIM(array))) :: str 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr58787.f90:18:6: END FUNCTION array_to_string 1 Error: Expecting END SUBROUTINE statement at (1) f951: internal compiler error: Segmentation fault: 11 f951: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.