f951 segfaults for gfortran.dg/initialization_1.f90

Jerry DeLisle jvdelisle@verizon.net
Tue Apr 15 05:00:00 GMT 2008


Kaz Kojima wrote:
> Hi,
> 
> I've got the failures on sh4-unknown-linux-gnu for
> gfortran.dg/initialization_1.f90:
> 
>   http://gcc.gnu.org/ml/gcc-testresults/2008-04/msg01012.html
> 
> Although these failures are not seen on i686, it failed if
> f951 was run under gdb:
> 

This bug has been reported previously:

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

--- snip ---
> 
> It seems that scalarize_intrinsic_call calls gfc_free_expr for
> the uninitialized expr variable.  The appended patch works for me,
> though I'm not sure how to fix this correctly.  Could gfortran
> experts take a look?
> 

The patch you are doing here is probably a good idea.  However, it may be 
masking the real problem, so we need to check into it further.  PaulT is working 
  on this.

A preliminary patch is here:

http://gcc.gnu.org/ml/fortran/2008-04/msg00107.html

Can you test this?

Jerry




More information about the Fortran mailing list