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

--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
Still in version 11.
Both Intel ifort and NAG nagfor detect the issue.

ifort -S gfbug73.f -w
gfbug73.f(5): error #6736: This transformational intrinsic function is invalid
in this context; statement functions cannot contain transformational intrinsic
functions.   [ALL]
      g(x)=all(l)
-----------^
compilation aborted for gfbug73.f (code 1)
[vitti f95]$nagfor -S gfbug73.f -w
NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042
Error: gfbug73.f, line 5: Reference to transformational intrinsic ALL in
statement function
[NAG Fortran Compiler error termination, 1 error]

Reply via email to