https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71783

            Bug ID: 71783
           Summary: ICE on valid code.
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: toon at moene dot org
  Target Milestone: ---

Created attachment 38843
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38843&action=edit
The code leading to the ICE.

The following code:

SUBROUTINE prtdata(ilen)
INTEGER :: ilen
character(len=ilen), allocatable :: cline(:)
allocate(cline(2))
cline(1) = 'a'
cline(2) = cline(1)
END SUBROUTINE prtdata

leads to an Internal Compiler Error in both 5.4 and 6.1 (and possibly previous
versions.

Reply via email to