| ! PR 38425 I/O: POS= compile-time diagnostics |
| !---------------------------------------------------------- |
| ! C919 (R913) If io-unit is not a file-unit-number, the |
| ! io-control-spec-list shall not contain a REC= specifier |
| write(str,*, pos=4) 5 ! { dg-error "incompatible with internal" } |
| ! C927 (R913) If a POS= specifier appears, the |
| ! io-control-spec-list shall not contain a REC= specifier. |
| write(3,pos=5,rec=4) 5 ! { dg-error "POS= is not allowed with REC=" } |
| write(3,rec=4,pos=5) 5 ! { dg-error "POS= is not allowed with REC=" } |
| !Fortran runtime error: REC=specifier not allowed with STREAM access |
| !Fortran runtime error: REC=specifier must be positive |
| !Fortran runtime error: POS=specifier must be positive |