Size intrinsic and related problems
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Mar 3 15:05:00 GMT 2020
On Tue, Mar 03, 2020 at 07:01:18AM -0800, Steve Kargl wrote:
> On Tue, Mar 03, 2020 at 10:50:23AM -0100, Jos\xE9 Rui Faustino de Sousa wrote:
> >
> > I noticed that the size intrinsic does not seem to follow the Fortran
> > standard, from my reading of it I would expect the following pseudo Fortran
> > to print -7:
> >
>
> Need a minimum working example to understand what you think
> you have observed. In looking at your pseudo-code, it seems
> to me that SIZE() can never return a negative value. The
> relevant wording from 16.9.179:
>
> Otherwise, the result has a value equal to the total number
> of elements of ARRAY.
>
Nevermind. Not enough coffee. And, you pseudo-code was missing
leading to say the least.
--
steve
More information about the Fortran
mailing list