diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index d7178310867..db1fc280625 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2011-10-09 Mikael Morin + + * interface.c (check_dummy_characteristics): Count dimensions starting + from one in diagnostic. + 2011-10-09 Tobias Burnus * Make-lang.in (F95_PARSER_OBJS, GFORTRAN_TRANS_DEPS): Add diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index 43b911376f5..5308513b774 100644 --- a/gcc/fortran/interface.c +++ b/gcc/fortran/interface.c @@ -1098,7 +1098,7 @@ check_dummy_characteristics (gfc_symbol *s1, gfc_symbol *s2, case 1: case -3: snprintf (errmsg, err_len, "Shape mismatch in dimension %i of " - "argument '%s'", i, s1->name); + "argument '%s'", i + 1, s1->name); return FAILURE; case -2: