Commit 2263019d by Jerry DeLisle

io.c (gfc_resolve_dt): Fix returns to bool type.

2017-05-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io.c (gfc_resolve_dt): Fix returns to bool type.

From-SVN: r248008
parent 65fdd5e9
2017-05-13 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* io.c (gfc_resolve_dt): Fix returns to bool type.
2017-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2017-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/78659 PR fortran/78659
......
...@@ -3299,7 +3299,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc) ...@@ -3299,7 +3299,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc)
gfc_error ("NAMELIST object %qs in namelist %qs at %L is " gfc_error ("NAMELIST object %qs in namelist %qs at %L is "
"polymorphic and requires a defined input/output " "polymorphic and requires a defined input/output "
"procedure", n->sym->name, dt->namelist->name, loc); "procedure", n->sym->name, dt->namelist->name, loc);
return 1; return false;
} }
if ((n->sym->ts.type == BT_DERIVED) if ((n->sym->ts.type == BT_DERIVED)
...@@ -3310,7 +3310,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc) ...@@ -3310,7 +3310,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc)
"namelist %qs at %L with ALLOCATABLE " "namelist %qs at %L with ALLOCATABLE "
"or POINTER components", n->sym->name, "or POINTER components", n->sym->name,
dt->namelist->name, loc)) dt->namelist->name, loc))
return 1; return false;
if (!t) if (!t)
{ {
...@@ -3318,7 +3318,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc) ...@@ -3318,7 +3318,7 @@ gfc_resolve_dt (gfc_dt *dt, locus *loc)
"ALLOCATABLE or POINTER components and thus requires " "ALLOCATABLE or POINTER components and thus requires "
"a defined input/output procedure", n->sym->name, "a defined input/output procedure", n->sym->name,
dt->namelist->name, loc); dt->namelist->name, loc);
return 1; return false;
} }
} }
} }
......
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