diff options
Diffstat (limited to 'gcc/fortran/error.c')
-rw-r--r-- | gcc/fortran/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c index b7b0fdb1bf6..aab196fdfdb 100644 --- a/gcc/fortran/error.c +++ b/gcc/fortran/error.c @@ -338,7 +338,7 @@ error_print (const char *type, const char *format0, va_list argp) case 'C': if (c == 'C') - loc = gfc_current_locus (); + loc = &gfc_current_locus; if (have_l1) { @@ -652,7 +652,7 @@ gfc_internal_error (const char *format, ...) va_start (argp, format); - show_loci (gfc_current_locus (), NULL); + show_loci (&gfc_current_locus, NULL); error_printf ("Internal Error at (1):"); error_print ("", format, argp); |