This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Bug or user error?
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Salvatore Filippone <sfilippone at uniroma2 dot it>
- Date: Tue, 17 May 2005 15:50:45 +0100
- Subject: Re: Bug or user error?
- Organization: CodeSourcery
- References: <1116339044.3407.16.camel@localhost>
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