[J3] How many blanks?
Van Snyder
van.snyder at sbcglobal.net
Tue Feb 4 21:31:04 UTC 2025
On Tue, 2025-02-04 at 15:23 -0500, Steve Lionel via J3 wrote:
> On 2/4/2025 3:16 PM, Van Snyder via J3 wrote:
>
> > I didn't search diligently but a cursory search failed to find a
> > prohibition against an INTENT(OUT) scalar character argument to an
> > intrinsic subroutine being unallocated allocatable. I also didn't
> > ask any compilers.
> 16.2.1p5 "Intrinsic subroutines that assign values to arguments of
> type character do so in accordance with the rules of intrinsic
> assignment (10.2.1.3)."
> We added this feature explicitly to F2023, but evidently neglected to
> consider the case where the existing text talks about assigning
> blanks. A simple fix is to say that in such cases a zero-length
> string is assigned rather than blanks. The net effect is the same for
> non-allocatable character arguments.
Some words ought to be added. I would think of this as editorial, but
others might think there's technical content, and maybe even an interp
would be needed.
> Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20250204/0d76c20d/attachment.htm>
More information about the J3
mailing list