This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug or user error?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]