https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69604

--- Comment #4 from Harald Anlauf <anlauf at gmx dot de> ---
Cases z1, z2 are invalid codes:

ifort:

pr69604-z1.f90(2): error #6579: A dummy argument of a statement function is
invalid in this context.   [N]
   x(n) = n()
----------^
compilation aborted for pr69604-z1.f90 (code 1)


sunf95:

   x(n) = n()
          ^   
"pr69604-z1.f90", Line = 2, Column = 11: ERROR: "N" is declared as the
statement function dummy argument, therefore it must not be used as an external
function name.

f90comp: 4 SOURCE LINES
f90comp: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI


Case z4 appears technically valid.

Reply via email to