]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/33554 (Seg.fault: Default initialization of derived type uses uninitial...
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 2 Oct 2007 08:03:07 +0000 (08:03 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 2 Oct 2007 08:03:07 +0000 (08:03 +0000)
commitd383707213c835c7f50ad778229e2428fa402863
treeff948ff9b958177f1fdfa3f78bf1080922b15f2c
parenta7ca4d8d3d7caa24e708267d8a6560eb6faf809a
re PR fortran/33554 (Seg.fault: Default initialization of derived type uses uninitialized values)

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.

From-SVN: r128950
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/intent_out_2.f90