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