This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/21625] Nested derived type pointer component not initialized on ALLOCATE



------- Comment #9 from cvs-commit at gcc dot gnu dot org  2005-10-24 16:41 -------
Subject: Bug 21625

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     eedelman@gcc.gnu.org    2005-10-24 16:41:07

Modified files:
        gcc/fortran    : ChangeLog resolve.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: derived_init_1.f90 

Log message:
        fortran/
        2005-10-24  Erik Edelmann  <erik.edelmann@iki.fi>

        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().

        testsuite/
        2005-10-24  Erik Edelmann  <erik.edelmann@iki.fi>

        PR fortran/21625
        * gfortran.dg/derived_init_1.f90: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.139&r2=1.335.2.140
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/resolve.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.34.2.22&r2=1.34.2.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.486&r2=1.5084.2.487
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/derived_init_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21625


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