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

bug report: Coarray character variable

michalkuraz
Beginner
427 Views
hello,
I receiveSIGSEGV segmentation fault with simple operation on coarray variable of character type.
here is the code
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
program bugrep
implicit none
character(len=1) :: test
  • if (this_image() == 1) then
    test[1] = "a"
    !on this print the first image terminates
    print *, test[1]
    end if
    sync all
    if (this_image() /= 1) then
    print *, "ready to print"
    !on this print the other images terminate as well
    print *, test[1]
    end if
    end program bugrep
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    ifort version:Version 12.0.0
    operating system: debian squeeze and ubuntu maverick (the same behaviour occured)
    compilation command:ifort -coarray bugrep.f90
    0 Kudos
    1 Reply
    Ron_Green
    Moderator
    427 Views
    Character Coarrays are not supported at this time.

    ron
    0 Kudos
    Reply