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

            Bug ID: 83318
           Summary: Illegal program causes internal compiler error with
                    tags gfc_trans_allocate, at fortran/trans-stmt.c:5646
                    and  Aborted (program f951)
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmh at ucar dot edu
  Target Milestone: ---

Created attachment 42812
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42812&action=edit
Stackdump from gfortran crash

the exact version of GCC: 5.4.0
the system type: cygwin 32 bit on Windows 7
the options given when GCC was configured/built: unkoown
the complete command line that triggers the bug: gfortran -g -O0 -o t.exe t.f90
the compiler output (error messages, warnings, etc.)
---------------------
t.f90:5:0:

     allocate(character(len=*) :: string_array(2))
 1
internal compiler error: in gfc_trans_allocate, at fortran/trans-stmt.c:5646

t.f90:5:0: internal compiler error: Aborted
gfortran: internal compiler error: Aborted (program f951)
------------------

the preprocessed file: crash apparently prevents this from being constructed.

I have attached the stackdump for what that is worth.

Failing program:
----------------------
program fail
    implicit none

    character(len=:), allocatable :: string_array(:)
    allocate(character(len=*) :: string_array(2))
end program fail

Reply via email to