Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

segmentation fault in parameterized derived-type and coarray case

Zuodong_Y_
Novice
1,014 Views

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
    1 Solution
    Igor_V_Intel
    Employee
    952 Views

    The bug is fixed in the compiler shipped as a part of oneAPI Gold release.


    View solution in original post

    0 Kudos
    5 Replies
    Steve_Lionel
    Honored Contributor III
    1,014 Views

    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.

    0 Kudos
    Igor_V_Intel
    Employee
    1,014 Views

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

    0 Kudos
    Igor_V_Intel
    Employee
    953 Views

    The bug is fixed in the compiler shipped as a part of oneAPI Gold release.


    0 Kudos
    JohnNichols
    Valued Contributor III
    947 Views

    Per chance what is the Gold edition?

    0 Kudos
    Steve_Lionel
    Honored Contributor III
    937 Views

    "Gold" means production release - the one you can see. It's a term some software developers use, not part of the product name.

    0 Kudos
    Reply