This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33554] [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2007 08:03:21 -0000
- Subject: [Bug fortran/33554] [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values
- References: <bug-33554-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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