diff options
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r-- | gcc/fortran/io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index 30344d9..4a55cbd 100644 --- a/gcc/fortran/io.c +++ b/gcc/fortran/io.c @@ -2424,6 +2424,12 @@ match_io (io_kind k) dt->io_unit = default_unit (k); goto get_io_list; } + else + { + /* Error for constructs like print (1,*). */ + if (k == M_PRINT) + goto syntax; + } /* Match a control list */ if (match_dt_element (k, dt) == MATCH_YES) |