http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50721
Bug #: 50721
Summary: [4.6/4.7 Regression] gfortran miscompiles FGSL
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
That's with FGSL version 0.9.3 from
http://www.lrz.de/services/software/mathematik/gsl/fortran/
Using gfortran 4.7 or 4.6 to compile the library and the tests/poly.f90 test
case shows a miscompile:
$ ./poly.exe
OK: All 25 tests passed
Bus error (core dumped)
As the stack is destroyed, one cannot get a good backtrace or error message.
The error occurs after calling
call unit_finalize()
Thus, either at the cleanup of poly() or when leaving main().
The program works with gfortran 4.5 - and the other test cases seem to work
fine.
Fails: 2010-04-30-r158919
Works: 2010-04-29-r158905