Bug or user error?

Paul Brook paul@codesourcery.com
Tue May 17 14:53:00 GMT 2005


On Tuesday 17 May 2005 15:10, Salvatore Filippone wrote:
> Hi there,
>
> >From reading M&R it was my understanding that NULL() pointer
>
> initialization are to be honoured after an ALLOCATE statement for
> derived type components, even if they are nested.
> However I am getting a 'This should not happen' from the attached code.
> Is this a bug, or am I mistaken?

This is a compiler bug.  Please file a bug report.

>From section 14.6.2.1.2 "Events that cause pointers to become disassociated"

"A pointer becomes associated [when] The pointer is an ultimate component of a 
type for which default initialization is specified for the component and 
[...] this object is allocated."

Paul



More information about the Fortran mailing list