[Bug fortran/107576] [10/11/12/13 Regression] ICE in gfc_conv_procedure_call, at fortran/trans-expr.cc:6193

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Mon Nov 14 17:29:51 GMT 2022


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

--- Comment #5 from G. Steinmetz <gscfq@t-online.de> ---

I had in mind Fortran 2018, 15.4.2.2 Explicit interface,
and therefore had added the examples z1c.f90 and z2c.f90.

Some other compilers (via Compiler Explorer) show an error 
for both z1.f90 and z2.f90 :

latest flang-new :
error: Semantic errors in /app/example.f90
error: Null pointer argument requires an explicit interface
     call s(null(z))

latest ifort/ifx :
error #8615: Intrinsic NULL() is passed as actual argument. An explicit
interface specifying that the corresponding dummy is pointer, allocatable or
optional is required.
   call s(null(z))

Would be interesting what e.g. NAG and Cray say about it.


More information about the Gcc-bugs mailing list