This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18579] intent(out) violation is not detected
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2005 09:17:42 -0000
- Subject: [Bug fortran/18579] intent(out) violation is not detected
- References: <bug-18579-9515@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paul dot richard dot thomas at cea dot fr 2005-12-15 09:17 -------
The test case is OK; the variable b is definable, so can be used as an actual
argument for a dummy with intent OUT/INOUT. DF6.0 and Lahey agree with me on
this.
Gfortran does the right thing if the intent is changed to IN. However, if the
testcase is modified to
call foo (b + 3.0)
it still does not give an error and that is a bug because the expression is not
definable.
I will produce a patch for it.
--
paul dot richard dot thomas at cea dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paulthomas2 at wanadoo dot
| |fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18579