--- Comment #1 from vladimir dot sysoev at gmail dot com 2007-01-31 13:45
---
Created an attachment (id=12985)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12985action=view)
Sample is cutted from big spec test
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30654
--- Comment #2 from vladimir dot sysoev at gmail dot com 2007-01-31 13:45
---
Looks like #28592
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30654
--- Comment #3 from dominiq at lps dot ens dot fr 2007-01-31 14:36 ---
The variable 'ii1' does not seem initialized before line 34 where it is used.
On my tests with the original code I got the output:
144454401.0 without optimization. With optimization, gfortran 4.3.0
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-01-31 14:55 ---
Works for me.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Known to work|
--- Comment #5 from tkoenig at gcc dot gnu dot org 2007-01-31 18:08 ---
This is a bug in the program (as noted in comment #3).
We warn about this with the right options:
$ gfortran -O2 -Wall tr30654.f
tr30654.f:35.17:
iii1=ii1+i1-1
1
Error: Symbol 'ii1' at