J3/06-173r2 Date: 2006/05/08 To: Interp subgroup From: Malcolm Cohen Subject: Interpretation request concerning DATA NUMBER: F03/0083 TITLE: Interpretation request concerning DATA KEYWORDS: DATA, substring DEFECT TYPE: Interpretation STATUS: Withdrawn by submitter QUESTION: Does the following program unit conform to the 2003 Fortran standard? subroutine S ( N ) character(3) :: c(2) data ( c(i)(n:n), i = 1, 2 ) / 'A', 'B' / end subroutine s ANSWER: No. A is required to be an or a (see R528 [87:31-32]). An is only a with some extra constraints (see R616 [107:10]). A ends with a and does not include a (see R612 and R613, [105:1-2]). Therefore c(i)(n:n) is not an array element. Similarly, a is a , and therefore c(i)(n:n) is not a structure component either. Therefore there is a syntax error in the third line of the program unit. EDITS: None. SUBMITTED BY: Van Snyder HISTORY: 06-173 m176 Submitted 06-173r1 revised question 06-173r2 Draft answer