Commit 92336ae1 by Steven G. Kargl

io.c (resolve_tag): Check EXIST tag is a default logical.

2010-07-05  Steven G. Kargl  <kargl@gcc.gnu.org>

    fortran/44797
    * fortran/io.c (resolve_tag): Check EXIST tag is a default logical.

From-SVN: r161852
parent 71b2fd74
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
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment