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/50721] [4.6/4.7 Regression] gfortran miscompiles FGSL


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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-10-13 22:04:33 UTC ---
Created attachment 25487
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25487
Test case - needs to be linked against -lgsl -lgslcblas

(In reply to comment #1)
> What were the compiler options?  Try using -fcheck=all -O0.
Options: "" or "-g". (Using -fcheck=all caused an ICE, cf. PR 50718.)

Reduced version attached - still needs the GSL to be linked:

$ gfortran-4.5 test.f90 -lgsl -lgslcblas && ./a.out
           0   8.0000000000000000     
$ gfortran-4.6 test.f90 -lgsl -lgslcblas && ./a.out 
           0   8.0000000000000000     
Bus error (core dumped)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]