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

--- Comment #7 from relliott at umn dot edu ---
Hello,

I just want to make one think certain.  You quoted section 6.3.3.1 of the 
J3/04-007 document to show that a NAMED local allocatable variable would be 
deallocated at the end of a routine.

However, it is unclear to me that this applies to a POINTER variable (as I have 
in my skeleton code).

In Section 6.3.1.2 is says:

    Allocation of a pointer creates an object that implicitly has the TARGET
    attribute. Following successful execution of an ALLOCATE statement for a
    pointer, the pointer is associated with the target and may be used to
    reference or define the target

This seems to say that an UNNAMED allocatable target object is created when the 
allocate statement for a pointer variable is executed.  In which case, section 
6.3.3.1 is not applicable.

Can you help me to understand why this is not the case?


Many thanks,

Ryan

Reply via email to