This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21625] Nested derived type pointer component not initialized on ALLOCATE
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2005 22:18:11 -0000
- Subject: [Bug fortran/21625] Nested derived type pointer component not initialized on ALLOCATE
- References: <bug-21625-9410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from cvs-commit at gcc dot gnu dot org 2005-10-19 22:18 -------
Subject: Bug 21625
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: eedelman@gcc.gnu.org 2005-10-19 22:18:08
Modified files:
gcc/fortran : ChangeLog resolve.c
Log message:
PR fortran/21625
* resolve.c (expr_to_initialize): New function.
(resolve_allocate_expr): Take current statement as new
argument. Add default initializers to variables of
derived types, if they need it.
(resolve_code): Provide current statement as argument to
resolve_allocate_expr().
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.589&r2=1.590
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&r1=1.61&r2=1.62
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21625