diff options
| author | Paul Thomas <pault@gcc.gnu.org> | 2006-07-07 04:47:24 +0000 |
|---|---|---|
| committer | Paul Thomas <pault@gcc.gnu.org> | 2006-07-07 04:47:24 +0000 |
| commit | ba661c8b58049773f07db48352da17bd9ed24981 (patch) | |
| tree | 2130c295ba64a01610afb8dab316d0cc47520ac1 /gcc/fortran/io.c | |
| parent | 9e33de052d8bd5dfdceb0e495857eb0c8fd06ed3 (diff) | |
| download | gcc-ba661c8b58049773f07db48352da17bd9ed24981.zip gcc-ba661c8b58049773f07db48352da17bd9ed24981.tar.gz gcc-ba661c8b58049773f07db48352da17bd9ed24981.tar.bz2 | |
re PR fortran/28237 (print call())
2006-07-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28237
PR fortran/23420
* io.c (resolve_tag): Any integer that is not an assigned
variable is an error.
2006-07-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28237
PR fortran/23420
* gfortran.dg/print_fmt_5.f90: New test.
From-SVN: r115246
Diffstat (limited to 'gcc/fortran/io.c')
| -rw-r--r-- | gcc/fortran/io.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index aab5d39..725e2da 100644 --- a/gcc/fortran/io.c +++ b/gcc/fortran/io.c @@ -1063,6 +1063,13 @@ resolve_tag (const io_tag * tag, gfc_expr * e) return FAILURE; } } + else if (e->ts.type == BT_INTEGER) + { + gfc_error ("scalar '%s' FORMAT tag at %L is not an ASSIGNED " + "variable", gfc_basic_typename (e->ts.type), &e->where); + return FAILURE; + } + return SUCCESS; } else |
