[Bug fortran/40037] gfortran -O3 optimization generates code that seg faults on unaligned array data
mick at nag dot co dot uk
gcc-bugzilla@gcc.gnu.org
Wed May 6 08:46:00 GMT 2009
------- Comment #2 from mick at nag dot co dot uk 2009-05-06 08:45 -------
(In reply to comment #1)
> I think this is not a valid Fortran program.
>
The main program is illegal because it passes a REAL array argument
to a subroutine expecting DOUBLE PRECISION array. However, the subroutine
SMALL is not illegal, but causes bad code to be generated. The main
program is only present for easy demonstration of the bug in SMALL.
Mick Pont
--
mick at nag dot co dot uk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40037
More information about the Gcc-bugs
mailing list