https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103567
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
CC| |anlauf at gcc dot gnu.org
--- Comment #2 from anlauf at gcc dot gnu.org ---
The code in comment#0 violates F2018:C838
"An assumed-rank variable name shall not appear in a designator or expression
except as an actual argument that corresponds to a dummy argument that is
assumed-rank, the argument of the function C_LOC or C_SIZEOF from the intrinsic
module ISO_C_BINDING (18.2), the first dummy argument of an intrinsic inquiry
function, or the selector of a SELECT RANK statement."
It is also rejected by Intel:
pr103567.f90(2): error #8775: An assumed rank object must be a DUMMY argument.
[Y]
real :: y(..)
----------^
Closing as invalid.