Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26733 Discussions

segmentation fault in parameterized derived-type and coarray case

Zuodong_Y_
Beginner
326 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
    264 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
    326 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
    326 Views

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

    Igor_V_Intel
    Employee
    265 Views

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


    View solution in original post

    JohnNichols
    Valued Contributor II
    259 Views

    Per chance what is the Gold edition?

    Steve_Lionel
    Black Belt Retired Employee
    249 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