diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2018-10-27 10:26:23 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2018-10-27 10:26:23 +0000 |
commit | e146ea17d797433206f96c18ad6975628888d103 (patch) | |
tree | 176d269194667d5aecb1885f0f2eae792e3104db /gcc/fortran/frontend-passes.c | |
parent | 9abee840cee767b18c9c3a2a0fe1e2e412182200 (diff) | |
download | gcc-e146ea17d797433206f96c18ad6975628888d103.zip gcc-e146ea17d797433206f96c18ad6975628888d103.tar.gz gcc-e146ea17d797433206f96c18ad6975628888d103.tar.bz2 |
re PR fortran/86907 (bogus warning "No location in expression near")
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.
From-SVN: r265559
Diffstat (limited to 'gcc/fortran/frontend-passes.c')
-rw-r--r-- | gcc/fortran/frontend-passes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fortran/frontend-passes.c b/gcc/fortran/frontend-passes.c index d380dcf..a6af96c 100644 --- a/gcc/fortran/frontend-passes.c +++ b/gcc/fortran/frontend-passes.c @@ -190,7 +190,8 @@ check_locus_code (gfc_code **c, int *walk_subtrees ATTRIBUTE_UNUSED, { 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; } @@ -205,7 +206,8 @@ check_locus_expr (gfc_expr **e, int *walk_subtrees ATTRIBUTE_UNUSED, { 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; } |