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.

Reply via email to