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

segmentation fault in parameterized derived-type and coarray case

Zuodong_Y_
Beginner
560 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
    498 Views

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


    View solution in original post

    5 Replies
    Steve_Lionel
    Black Belt Retired Employee
    560 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.

    Igor_V_Intel
    Employee
    560 Views

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

    Igor_V_Intel
    Employee
    499 Views

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


    JohnNichols
    Valued Contributor II
    493 Views

    Per chance what is the Gold edition?

    Steve_Lionel
    Black Belt Retired Employee
    483 Views

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

    Reply