This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: bug report -- vector subscripts


On Tue, Feb 28, 2006 at 12:04:13PM -0600, Zepu Zhang wrote:
> 
> The following program compiled on my Mac and worked as expected: <a> got 
> changed. On my Linux it compiled but didn't work as expected--<a> was 
> not changed.
> 
> Is this bug?

Yes, but not the bug you think.

> Is my usage standard-compliant?

No.  From Lahey's web based source code checker.

Compiling program unit sub1 at line 19:
  2523-S: "SOURCE.F90", line 26: Actual argument associated with dummy
  argument 'sub2' must be definable when dummy argument has the INTENT(OUT)
  or INTENT(INOUT) attribute.
Encountered 1 error, 0 warnings, 0 informations in file SOURCE.F90.
Compiling file SOURCE.F90.

> or should it be discouraged?

Yes.

-- 
Steve


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