http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57197
Bug #: 57197 Summary: [Fortran-Dev][Regression] ICE in record_reference, at cgraphbuild.c:66 Classification: Unclassified Product: gcc Version: fortran-dev Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org 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