Defect: wrong value for this_image() in array constructor #681
Labels
bug
Hacktoberfest
Hacktoberfest issues easy for new contributors
help-wanted
in progress
unconfirmed
System information including:
CC=gcc FC="gfortran -I$MPI_BASE/include/gfortran/9.1.0" cmake /dss/dsshome1/lrz/noarch/src/compilers/gcc/opencoarrays/OpenCoarrays-2.7.1 -DCMAKE_INSTALL_PREFIX=${PWD}
uname -a
:Linux mpp2-login5 4.4.180-94.100-default tests dis_transpose: test passed #1 SMP Tue Jul 9 19:57:20 UTC 2019 (1569ffb) x86_64 x86_64 x86_64 GNU/Linux
To help us debug your issue please explain:
What you were trying to do (and why)
assign to an array constructor:
a = (/ this_image(), 5*this_image() /)
What happened (include command output, screenshots, logs, etc.)
resulting value of a after the statement is [ 0,0 ]
What you expected to happen
resulting value of a after statement is [ 1,5 ] on image 1
Step-by-step reproduction instructions to reproduce the error/bug
Use the following code:
build it with
caf tu.f90
execute with
cafrun -n 1 ./a.out
Notes:
The text was updated successfully, but these errors were encountered: