https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58787
--- Comment #12 from Jürgen Reuter <juergen.reuter at desy dot de> --- (In reply to Dominique d'Humieres from comment #11) > > I can confirm that this ICEs on Linux, but not on MACOSX. > > I get the ICE with MACOSX: > > ... > Error: Expecting END SUBROUTINE statement at (1) > f951: internal compiler error: Segmentation fault: 11 Strange, I get: $ gfortran -c pr_58787.f90 pr_58787.f90:15:27: 10 | USE string_utilities_mod | 2 .... 15 | FUNCTION array_to_string(array) RESULT(str) | 1 Error: Procedure 'array_to_string' at (1) is already defined at (2) pr_58787.f90:15:34: 15 | FUNCTION array_to_string(array) RESULT(str) | 1 Error: Cannot change attributes of USE-associated symbol array_to_string at (1) pr_58787.f90:16:33: 16 | CHARACTER(LEN=1) :: array(1) | 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr_58787.f90:17:47: 17 | CHARACTER(LEN=SUM(LEN_TRIM(array))) :: str | 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr_58787.f90:18:6: 18 | END FUNCTION array_to_string | 1 Error: Expecting END SUBROUTINE statement at (1) (null):0: confused by earlier errors, bailing out