The following code gives a segmentation fault.
This error is triggered when I call a procedure (ProceVersion2) passing a coarray actual argument but the associated dummy argument has NOT the coarray attribute.
If the same procedure is written with the coarray attribute for the dummy argument (ProceVersion1), then there is no error.
Surprisingly, if both procedures are called, there is also no error.
Also, if the allocatable attribute is removed, there is no error
Thanks for looking at this issue.
Program Main integer ,allocatable ,codimension[:] :: coVar ! integer ,codimension
I reproduced all the various results you noted using our latest 17.0 Update 1 release and escalated this to Development. Thank you for the nice test case.
(Internal tracking id: DPD200416816)