https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71884
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #10 from anlauf at gcc dot gnu.org ---
(In reply to kargls from comment #9)
> Looks substantially like my patch from comment #6. ;-)
I missed that one on the ML as it refers to a different PR number.
> Another way to think about the problem is that
>
> allocate(x, source=null())
>
> is equivalent to
>
> allocate(x)
> x = null()
>
> which is nonsense for x an allocatable entity or pointer.
That's what I thought, too.
> Your patch is ok to commit with a suitable testcase.
Will do.
BTW: I figured that the testcase in comment#1 is dealt with by
r8-5211-gd36eb6bf6d3e32 by you :-), so I'll leave out that case.