This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15620] Statement functions and optimization cause IC
- From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 21:52:19 -0000
- Subject: [Bug fortran/15620] Statement functions and optimization cause IC
- References: <20040523185224.15620.kargl@c-67-168-59-70.client.comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pbrook at gcc dot gnu dot org 2004-05-23 21:52 -------
We have much deeper problems.
function foo (x)
integer z, y, foo, x
bar(Z) = Z*z
z = 42
t = bar(x)
foo = t + z
END function
program prog
integer foo
if (foo(1) .ne. 43) call abort
end program
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15620