The example from bug 45170 comment 41 fails with an ICE on Fortran-Dev internal compiler error: in record_reference, at cgraphbuild.c:66 It works with GCC 4.8/4.9 module thing implicit none character(len=:), allocatable :: array_of_chars(:) contains subroutine allocatestuff() implicit none integer :: length_names = 15 integer :: number_arrays = 5 allocate(character(15) :: array_of_chars(number_arrays)) !allocate(character(length_names) :: array_of_chars(number_arrays)) end subroutine allocatestuff end module thing program test1 implicit none call allocatestuff() end program test1
Confirmed.
For me, test compiles now without ICE -- same with "use thing" added. $ gfortran-6 --version GNU Fortran (SUSE Linux) 6.1.1 20160502 [gcc-6-branch revision 235698]
The code in comment one compiles without a problem. Can this be closed as fixed.
> The code in comment one compiles without a problem. > Can this be closed as fixed. It even compiles with fortran-dev revision 240290 (2016-09-19). Closing.