This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/18579] intent(out) violation is not detected



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]