[Bug fortran/125724] ICE in gfc_conv_procedure_call passing NULL() to an allocatable dummy argument
anlauf at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 10 18:42:20 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125724
--- Comment #5 from Harald Anlauf <anlauf at gcc dot gnu.org> ---
(In reply to David Binderman from comment #3)
> Quite interestingly, flang likes the code:
>
> ~ $ more q.f90
>
> program p
> call sub (null ())
> contains
> subroutine sub (a)
> integer, allocatable, intent(in) :: a
> if (allocated (a)) stop 1
> end subroutine
> end program
> ~ $
>
> ~ $ flang -c q.f90
> ~ $
>
> I have no idea which compiler is correct.
I was talking about Jerry's null_actual_8.f90.
Yours is fine.
More information about the Gcc-bugs
mailing list