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 #10 from pault at gcc dot gnu dot org  2007-10-01 04:39 -------
(In reply to comment #9)
> > This probably caused by:
> > http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00745.html
> > r126885 | pault | 2007-07-24 21:15:27 +0200 (Di, 24 Jul 2007) | 36 lines
> > 2007-07-24 Paul Thomas <pault@gcc.gnu.org>
> >         PR 31205
> >         PR 32842
> >         * trans-expr.c (gfc_conv_function_call): Remove the default
> >         initialization of intent(out) derived types.
> 

Yes, the initialization is occurring in the wrong place in
gfc_trans_deferred_vars.  It looks to be easily fixable.  I'll be onto it
tonight.

Paul


-- 


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]