bug report: segmentation fault with allocate on assign
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Mar 13 02:48:00 GMT 2016
On Sat, Mar 12, 2016 at 03:47:47PM -0800, Brad Finney wrote:
> 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
Paul fixed a bunch of deferred parameter length bugs
3 days ago on the 5-branch. Can you update gfortran
and test?
--
Steve
More information about the Fortran
mailing list