This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/50721] [4.6/4.7 Regression] gfortran miscompiles FGSL
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Oct 2011 22:04:33 +0000
- Subject: [Bug fortran/50721] [4.6/4.7 Regression] gfortran miscompiles FGSL
- Auto-submitted: auto-generated
- References: <bug-50721-4@http.gcc.gnu.org/bugzilla/>
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)