On Tuesday 04 October 2011 20:54:21 Janus Weil wrote:
> >>> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
> >> 
> >> The patch is basically OK.
> > 
> > Otherwise I'll just start by committing the
> > patch as posted ...
> 
> Just did so (r179520).
> 

Hello, 

I've just committed the following amendment as revision 179726.

Mikael

Index: interface.c
===================================================================
--- interface.c	(révision 179725)
+++ interface.c	(révision 179726)
@@ -1098,7 +1098,7 @@ check_dummy_characteristics (gfc_symbol *s1, gfc_s
 	      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:
Index: ChangeLog
===================================================================
--- ChangeLog	(révision 179725)
+++ ChangeLog	(révision 179726)
@@ -1,3 +1,8 @@
+2011-10-09  Mikael Morin  <mikael.mo...@sfr.fr>
+
+	* interface.c (check_dummy_characteristics): Count dimensions starting
+	from one in diagnostic.
+
 2011-10-09  Tobias Burnus  <bur...@net-b.de>
 
 	* Make-lang.in (F95_PARSER_OBJS, GFORTRAN_TRANS_DEPS): Add

Reply via email to