This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch,gfortran] PR 21625: Initialization of derived types atallocation
- From: Paul Thomas <paulthomas2 at wanadoo dot fr>
- To: Erik Edelmann <erik dot edelmann at iki dot fi>
- Cc: gfortran <fortran at gcc dot gnu dot org>,gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 19 Oct 2005 20:43:52 +0200
- Subject: Re: [patch,gfortran] PR 21625: Initialization of derived types atallocation
- References: <20051018202616.GA23026@acclab.helsinki.fi> <20051019091743.GA551@acclab.helsinki.fi>
Erik,
These are probably a naive questions:
(1) Why do you add the intialization in resolve_code rather than
match.c(gfc_match_allocate)? The derived type is available at match
time, isn't it?
(2) What is the business about making the last reference full?
You might just call the testcase derived_init_1.f90.
Apart from this, the patch looks fine, works OK and regtests on FC3/Athlon.
Paul T