There are no Clause 12 constraints to check for PRINT, but PRINT does share
FMT specifier processing with READ and WRITE. To avoid interactions between
these I/O statements, reset IoChecker values for PRINT.
Original-commit: flang-compiler/f18@
6a547667187e2832c8c162d4ee02835ff4c190b4
Reviewed-on: https://github.com/flang-compiler/f18/pull/528
void Enter(const parser::FlushStmt &) { Init(IoStmtKind::Flush); }
void Enter(const parser::InquireStmt &) { Init(IoStmtKind::Inquire); }
void Enter(const parser::OpenStmt &) { Init(IoStmtKind::Open); }
+ void Enter(const parser::PrintStmt &) { Init(IoStmtKind::Print); }
void Enter(const parser::ReadStmt &) { Init(IoStmtKind::Read); }
void Enter(const parser::RewindStmt &) { Init(IoStmtKind::Rewind); }
void Enter(const parser::WaitStmt &) { Init(IoStmtKind::Wait); }
open(10)
read*
+ print*, 'Ok'
read(*)
read*, jj
read(*, *) jj