Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
5 Views

segmentation fault in parameterized derived-type and coarray case

Following code compiled with ifort -coarray on Intel(R) 64, Version 18.0.1.163 Build 20171018 cause segmentation fault. Any reason for this?

program main
	implicit none
	type gfs(D)
		integer, len :: D
		integer :: Qs(D)
	end type
	type(gfs(2)) :: phy
  • phy%Qs(1:2)=[1:2] end program
  •  

    0 Kudos
    2 Replies
    Highlighted
    Retired Employee
    5 Views

    I can reproduce this in 19.1.

    I can reproduce this in 19.1. Looks like a compiler bug to me - please report it through the Online Service Center.  I'd guess that the interaction between length type parameters and coarrays hasn't been fully tested.

    --
    Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
    0 Kudos
    Highlighted
    Employee
    5 Views

    I have reproduced it as well

    I have reproduced it as well and will escalate to be fixed. Thanks for reporting it.

    0 Kudos