https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98016
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- I confirm that the test in comment O compiles without any error. However if I replace real y(n) with dimension y(n) I get the error Error: Variable 'n' cannot appear in the expression at (1)