[J3] [EXTERNAL] Re: Changing address of an allocatable on assignment when shapes match

Steven G. Kargl kargl at troutmask.apl.washington.edu
Sat Aug 24 00:23:45 EDT 2019


Assignment 10.2

...

If the variable is a pointer, it shall be associated with a definable
target such that the type, type parameters, and shape of the target
and expr conform.

-- 
steve


On Fri, Aug 23, 2019 at 11:14:56PM -0400, Vipul Parekh via J3 wrote:
> I couldn't understand the statement, "In general, it would not be
> conforming to do the reallocation if the allocatable array has the
> TARGET attribute, as this would break the Fortran pointer association
> semantics" - can someone please point me to the relevant section(s)
> (and paragraph(s)) in the standard that might explain it for me?
> 
> Thanks,
> Vipul Parekh
> 
> 
> On Fri, Aug 23, 2019 at 9:16 PM Malcolm Cohen via J3
> <j3 at mailman.j3-fortran.org> wrote:
> >
> > We do say so! We state precisely when “reallocation” happens. It’s not called “reallocation” either; it is called “deallocating” followed by “allocating”.
> >
> > And “reallocation” is already in the reasons, seeing as how it is stated as “deallocation”, which is already in the reasons. ..

-- 
Steve


More information about the J3 mailing list