+2018-10-27 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/86907
+ * frontend-passes.c (check_locus_code): Add information that
+ warning about missing location information points to an
+ inconsisten internal state.
+ (check_locus_expr): Likewise.
+
2018-10-25 Jakub Jelinek <jakub@redhat.com>
PR fortran/87725
{
current_code = c;
if (c && *c && (((*c)->loc.nextc == NULL) || ((*c)->loc.lb == NULL)))
- gfc_warning_internal (0, "No location in statement");
+ gfc_warning_internal (0, "Inconsistent internal state: "
+ "No location in statement");
return 0;
}
{
if (e && *e && (((*e)->where.nextc == NULL || (*e)->where.lb == NULL)))
- gfc_warning_internal (0, "No location in expression near %L",
+ gfc_warning_internal (0, "Inconsistent internal state: "
+ "No location in expression near %L",
&((*current_code)->loc));
return 0;
}