(j3.2006) Interp F03/0091

Jim Xia jimxia
Thu May 17 15:00:16 EDT 2007


Hi Michael,

The modified EDITS look good to me.

Thanks,

Jim Xia

XL Fortran Compiler Testing
IBM Toronto Lab at 8200 Warden Ave.
Phone (905) 413-3444  Tie-line 969-3444
D2/NAH/8200 /MKM



Michael Ingrassia <michaeli at ranma.sfbay.sun.com> 
Sent by: j3-bounces at j3-fortran.org
05/17/2007 02:48 PM
Please respond to
fortran standards email list for J3 <j3 at j3-fortran.org>


To
j3 at j3-fortran.org
cc

Subject
(j3.2006) Interp F03/0091






----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 11

Before we can vote on Interp F03/0091 the answer needs modification.

I think the paper below captures the discussions we had Friday
at Meeting 180.  Jim, do you agree?

What is the procedure for making progress on this?  Should this (or 
something
like it following discussion) be 
submitted as a Meeting 181 paper, or should it be submitted as
a post-180 paper and perhaps given the number 07-232r1 ?

                 --Michael I.
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: 07-232r1.txtBETA
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 51

                                                                   07-232
To:      J3
From:    Michael Ingrassia
Subject: Array components cannot depend on length type parameters
Date: 2007 May 10

NUMBER:   F03/0091
TITLE:    Array components cannot depend on length type parameters
KEYWORDS: length parameter, specification expression, component
          declarations
DEFECT TYPE: Erratum
STATUS:   J3 consideration in progress

QUESTION:

Consider

  MODULE m
    TYPE t(n)
      INTEGER,LEN :: n
      REAL v(n)
    END TYPE
  END

According to C542 at [78:21-22], the bounds in that <explicit-shape-spec>
are required to be initialization expressions.  That seems to prevent the
intended use of length type parameters.

Is the example intended to be standard-conforming?

ANSWER:

Yes, the example was intended to be standard-conforming.
Constraint C542 does not actually apply since v(n) is not an 
explicit-shape 
array as defined at [78:16], but is instead an array component as
described in 4.5.3.1.  The syntax for both explicit-shape arrays and
array components currently is derived using the same
 term explicit-shape-spec from the BNF.


EDITS: Constraint 542 should refer to syntax rule R510 instead of syntax
rule R511, making [78:21] read

> C542  (R510) An explicit-shape array ...



SUBMITTED BY: Van Snyder

HISTORY: m180 07-231   submitted as modified by Malcolm Cohen.
                  m181 07-231r1 submitted as modified by Michael Ingrassia 
/ Jim Xie
_______________________________________________
J3 mailing list
J3 at j3-fortran.org
http://j3-fortran.org/mailman/listinfo/j3

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20070517/25d8b39a/attachment.html 



More information about the J3 mailing list