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

            Bug ID: 70215
           Summary: segmentation fault with allocate on assign; 32 bit
                    version, not 64 bit
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: brad.finney at humboldt dot edu
  Target Milestone: ---

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0  ffffffff

when compiling with 32 bit architecture selected (-m32 flag), but executes
correctly without error when 64 bit is selected.

program defer
  implicit none
  character(len=:), dimension(:), allocatable::s
  s=["a12","ab3","abc"]
  write(*,*)"shape of s: ",shape(s)
end program defer

gcc version 5.3.0, Target: x86_64-w64-mingw32

Reply via email to