This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32046] New: [Regression 4.3] wrong code with -O2 for gfortran.dg/interface_12.f90 & result_in_spec_1.f90
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2007 17:55:45 -0000
- Subject: [Bug middle-end/32046] New: [Regression 4.3] wrong code with -O2 for gfortran.dg/interface_12.f90 & result_in_spec_1.f90
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following examples run fine with -O1, but with -O2 they gfortran library
gives an error at run time.
$ gfortran -O gfortran.dg/interface_12.f90
$ ./a.out
$ gfortran -O2 gfortran.dg/interface_12.f90
$ ./a.out
Fortran runtime error: Attempt to allocate a negative amount of memory.
Analogously for gfortran.dg/result_in_spec_1.f90
--
Summary: [Regression 4.3] wrong code with -O2 for
gfortran.dg/interface_12.f90 & result_in_spec_1.f90
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32046