This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30655] Undue out-of-bounds warning
- 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:13:13 -0000
- Subject: [Bug fortran/30655] Undue out-of-bounds warning
- References: <bug-30655-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2007-01-31 18:13 -------
Really?
This is fine:
integer i(12), j
i(0:-1) = 42
end
In your test case, the compiler has a hard time detecting the
value of j, and the lower bound would be incorrect if j >=1.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30655