2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/70006
* io.c (gfc_resolve_dt): Use correct locus.
* resolve.c (resolve_branch): Ditto.
2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/70006
* gfortran.dg/pr70006.f90: New test.
From-SVN: r238905
+2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/70006
+ * io.c (gfc_resolve_dt): Use correct locus.
+ * resolve.c (resolve_branch): Ditto.
+
2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/71730
&& dt->format_label->defined == ST_LABEL_UNKNOWN)
{
gfc_error ("FORMAT label %d at %L not defined", dt->format_label->value,
- &dt->format_label->where);
+ loc);
return false;
}
if (label->defined == ST_LABEL_UNKNOWN)
{
gfc_error ("Label %d referenced at %L is never defined", label->value,
- &label->where);
+ &code->loc);
return;
}
+2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ PR fortran/70006
+ * gfortran.dg/pr70006.f90: New test.
+
2016-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/71730
--- /dev/null
+! { dg-do compile}
+program test
+ print 1, 'string 1' ! { dg-error "FORMAT label 1" " " { target *-*-* } 3 }
+ print 1, 'string 2' ! { dg-error "FORMAT label 1" " " { target *-*-* } 4 }
+!1 format(a)
+ goto 2 ! { dg-error "Label 2 referenced" " " { target *-*-* } 6 }
+ goto 2 ! { dg-error "Label 2 referenced" " " { target *-*-* } 7 }
+!2 continue
+end program