File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ TYPE_CONTEXT_PARSER("BACKSPACE statement"_en_US,
314314// R1225 endfile-stmt ->
315315// ENDFILE file-unit-number | ENDFILE ( position-spec-list )
316316TYPE_CONTEXT_PARSER(" ENDFILE statement" _en_US,
317- construct<EndfileStmt>(" ENDFILE " >> positionOrFlushSpecList))
317+ construct<EndfileStmt>(" END FILE " >> positionOrFlushSpecList))
318318
319319// R1226 rewind-stmt -> REWIND file-unit-number | REWIND ( position-spec-list )
320320TYPE_CONTEXT_PARSER(" REWIND statement" _en_US,
Original file line number Diff line number Diff line change @@ -157,8 +157,9 @@ pure subroutine s12
157157 close (1 ) ! C1597
158158 ! ERROR: External I/O is not allowed in a pure subprogram
159159 backspace (1 ) ! C1597
160+ ! Also checks parsing of variant END FILE spelling
160161 ! ERROR: External I/O is not allowed in a pure subprogram
161- endfile (1 ) ! C1597
162+ end file (1 ) ! C1597
162163 ! ERROR: External I/O is not allowed in a pure subprogram
163164 rewind(1 ) ! C1597
164165 ! ERROR: External I/O is not allowed in a pure subprogram
You can’t perform that action at this time.
0 commit comments