This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28004] Warn if intent(out) dummy variable is not set
- 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: 11 Nov 2006 11:18:27 -0000
- Subject: [Bug fortran/28004] Warn if intent(out) dummy variable is not set
- References: <bug-28004-1719@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 2006-11-11 11:18 -------
Related (and maybe more relevant):
INTENT(OUT) variables become undefined on subroutine
or function entry. We should be able to warn if
they are used:
subroutine foo(a,b)
real, intent(out) :: a
real, intent(out) :: b
print *,a
b = a
end subroutine foo
--
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=28004