This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30146] Redefining do-variable in excecution cycle
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2006 20:56:47 -0000
- Subject: [Bug fortran/30146] Redefining do-variable in excecution cycle
- References: <bug-30146-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tobi at gcc dot gnu dot org 2006-12-17 20:56 -------
As long as the callee doesn't change the value it's probably valid, so this
would need some kind of interprocedural analysis to give a correct error. A
warning may be in place, though. This shouldn't be to hard, we check that LHS'
are not DO variables, so similar code is already there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30146