[Bug fortran/20538] compiling -finline-functions -O2 and we crash at runtime
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 22:36:00 GMT 2005
------- Additional Comments From kargl at gcc dot gnu dot org 2005-03-18 22:36 -------
I added a "print *, size(bodies)" in the advance routine. We have
troutmask:kargl[295] gfc -o jk -O2 jk.f90
troutmask:kargl[296] ./jk 1
-0.169075164
-595
-0.169075164
troutmask:kargl[297] gfc -o jk -O jk.f90
troutmask:kargl[298] ./jk 1
-0.169075164
5
-0.169074954
Note, the correct answer is 5, so it looks like -O2 is screwing up the
size() function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20538
More information about the Gcc-bugs
mailing list