summaryrefslogtreecommitdiff
path: root/gcc/fortran/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/error.c')
-rw-r--r--gcc/fortran/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index add23ce0fb3..e25a4286b24 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -207,7 +207,7 @@ show_locus (locus *loc, int c1, int c2)
{
i = f->inclusion_line;
- f = f->included_by;
+ f = f->up;
if (f == NULL) break;
error_printf (" Included at %s:%d:", f->filename, i);