-fbounds-check causes Segmentation fault

Jerry DeLisle jvdelisle@verizon.net
Sat Sep 9 01:24:00 GMT 2006


marco restelli wrote:
> Hi,
>  the following code works when compiled with
> 
> gfortran test_sf.f90 -o test_sf
> 
> but results in Segmentation fault when compiled
> with
> 
> gfortran -fbounds-check test_sf.f90 -o test_sf
> 
> The same code works when compiled with the Intel
> compiler.
> 
> gfortran --version
> GNU Fortran 95 (GCC) 4.1.1 (Gentoo 4.1.1)
> Copyright (C) 2006 Free Software Foundation, Inc.
> 
> Thank you for any suggestion
>   Marco
> 
Seems to compile fine with 4.2 version of gfortran.  Try latest branch if you 
can or wait for 4.2 release.

Regards,

Jerry



More information about the Fortran mailing list