[Bug fortran/33554] [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 26 07:53:00 GMT 2007



------- Comment #7 from burnus at gcc dot gnu dot org  2007-09-26 07:53 -------
> I found backups of other gfortran versions:

More tests:
Works: 2007-07-23-r126835
Fails: 2007-07-25-r126902

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.
[...]


> > GNU Fortran (GCC) 4.3.0 20070805 (experimental)
> Did you try a more recent version?
Yes, it is crashing with today's version and yesterday's -ftree-dump-original
looks wrong; the problem with memory-access bugs is that it is quite random
whether it is detected or not - even valgrind does not always detect it. (It
does here, which is no surprise as the program crashes with a segmentation
fault.)


-- 


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



More information about the Gcc-bugs mailing list