[Bug fortran/50551] Argumentless NULL() cannot be used with assumed-length dummy (r178939)

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Feb 27 10:06:26 GMT 2021


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

--- Comment #3 from Vittorio Zecca <zeccav at gmail dot com> ---
Still in trunk.
The NAG nagfor and Intel ifort compilers detect the issue.

gfortran -S gfbug89.f

[vitti f95]$nagfor -S -w gfbug89.f
NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042
Error: gfbug89.f, line 10: Argumentless NULL() cannot be used with
assumed-length dummy
[NAG Fortran Compiler error termination, 1 error]

[vitti f95]$ifort -S -w gfbug89.f
gfbug89.f(10): error #8613: Intrinsic NULL() must have the MOLD argument if it
is an actual argument corresponding to a dummy argument with assumed type
parameters.
      call sub(null())  ! null() cannot be used with assumed length dummy
argument
---------------^
compilation aborted for gfbug89.f (code 1)


More information about the Gcc-bugs mailing list