This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30654] Segmentation fault -O2 of file with deep nested loops
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 18:08:44 -0000
- Subject: [Bug fortran/30654] Segmentation fault -O2 of file with deep nested loops
- References: <bug-30654-14027@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 (1) has no IMPLICIT type
$ vi tr30654.f
$ gfortran -O2 -Wall tr30654.f
tr30654.f: In function 'MAIN__':
tr30654.f:35: warning: 'ii1' is used uninitialized in this function
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../gcc/trunk/configure --prefix=/home/ig25
--enable-maintainer-mode --enable-languages=c,fortran
Thread model: posix
gcc version 4.3.0 20070127 (experimental)
Closing.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30654