https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592
--- Comment #3 from anlauf at gcc dot gnu.org ---
It looks like argument association is confused here.
(The F2018 reference is 15.5.2.3 and 15.5.2.4).
The following patch appears to fix the testcase:
diff --git a/gcc/fortran/trans-expr.cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592
anlauf at gcc dot gnu.org changed:
What|Removed |Added
CC||anlauf at gcc dot gnu.org