Bug 57197 - [Fortran-Dev][Regression] ICE in record_reference, at cgraphbuild.c:66
Summary: [Fortran-Dev][Regression] ICE in record_reference, at cgraphbuild.c:66
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: fortran-dev
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: 56818
  Show dependency treegraph
 
Reported: 2013-05-07 21:27 UTC by Tobias Burnus
Modified: 2018-03-07 06:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2013-05-08 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2013-05-07 21:27:44 UTC
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
Comment 1 Dominique d'Humieres 2013-05-08 06:01:37 UTC
Confirmed.
Comment 2 Gerhard Steinmetz 2016-05-11 17:24:17 UTC
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]
Comment 3 kargls 2018-03-07 03:39:28 UTC
The code in comment one compiles without a problem.
Can this be closed as fixed.
Comment 4 Dominique d'Humieres 2018-03-07 06:53:14 UTC
> 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.