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/33554] [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values



------- Comment #12 from pault at gcc dot gnu dot org  2007-10-02 08:03 -------
Subject: Bug 33554

Author: pault
Date: Tue Oct  2 08:03:07 2007
New Revision: 128950

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128950
Log:
2007-10-02  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/33554
        * trans-decl.c (init_intent_out_dt): New function.
        (gfc_trans_deferred_vars): Remove the code for default
        initialization of INTENT(OUT) derived types and put it
        in the new function.  Call it earlier than before, so
        that array offsets and lower bounds are available.

2007-10-02  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/33554
        * gfortran.dg/intent_out_2.f90: New test.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/intent_out_2.f90


-- 


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


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