Hi Jerry, hi Harald, I am sorry for not responding earlier. I got a small but urgent project in and have to do it first. It is only three days (w/ continuation possible), but it pays so it has priority.
As for the issues at hand: Jerry, you probably should have the coarray fixes patches from here : https://gcc.gnu.org/pipermail/fortran/2025-July/062470.html on your test branch (both on 15 and 16) to pass the OpenCoarray tests successfully. Because with it: works for me ;-) Harald, when you look at OpenCoarray's test_teams_1.f90.006.original tree dump (src/tests/unit/teams/ directory), then it may answer your question why I want to put all function evaluation to the calling side and not to the remote accessor. In this testcase w/o my patch the team_number(team) gets moved to the accessor, but `team` can not be moved there (opaque pointer on the source side w/o known size and how to copy). When you test OpenCoarrays, Jerry, then please make sure to use separate and clean build directories. The build stuff from OpenCoarrays is sometimes not cleaning up its artifacts correctly, so that .o's stay that better shouldn't. Hope to get back to gfortran hacking by mid of the week and that this few tips helped. Regards, Andre -- Andre Vehreschild * Email: vehre ad gmx dot de