This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: bug report -- vector subscripts
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Zepu Zhang <zpzhang at uchicago dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 28 Feb 2006 10:25:55 -0800
- Subject: Re: bug report -- vector subscripts
- References: <4404909D.3070400@uchicago.edu>
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