diff options
author | kargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-05 20:14:15 +0000 |
---|---|---|
committer | kargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-05 20:14:15 +0000 |
commit | c714a68a60271a65c7b4e2b1fcad2cc35568473b (patch) | |
tree | 4cb3d1a8d3afa3ae2ad19488cef8e8e415ee4d5d /gcc/fortran | |
parent | 56cc625856d5da0c6d10fda76e2fc0426ce238d7 (diff) | |
download | gcc-c714a68a60271a65c7b4e2b1fcad2cc35568473b.tar.gz |
2010-07-05 Steven G. Kargl <kargl@gcc.gnu.org>
fortran/44797
* fortran/io.c (resolve_tag): Check EXIST tag is a default logical.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/io.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 621879b5b1b..611f6d982b9 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2010-07-05 Steven G. Kargl <kargl@gcc.gnu.org> + + fortran/44797 + * fortran/io.c (resolve_tag): Check EXIST tag is a default logical. + 2010-07-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/44596 diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index f9a6d7b1240..afbde0210b4 100644 --- a/gcc/fortran/io.c +++ b/gcc/fortran/io.c @@ -1497,6 +1497,14 @@ resolve_tag (const io_tag *tag, gfc_expr *e) return FAILURE; } + if (tag == &tag_exist && e->ts.kind != gfc_default_logical_kind) + { + if (gfc_notify_std (GFC_STD_F2008, "Fortran 2008: Nondefault LOGICAL " + "in %s tag at %L", tag->name, &e->where) + == FAILURE) + return FAILURE; + } + if (tag == &tag_convert) { if (gfc_notify_std (GFC_STD_GNU, "Extension: CONVERT tag at %L", |