aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/error.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 34ea1e5..95ce73f 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-06 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/29711
+ * error.c (error_print): Fix handling of printf-style position specifiers
+ of the form "%3$d"
+
2006-12-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30003
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index d92fd82..fd8f0bb 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -549,6 +549,7 @@ error_print (const char *type, const char *format0, va_list argp)
{
/* This is a position specifier. See comment above. */
while (ISDIGIT(*format))
+ format++;
/* Skip over the dollar sign. */
format++;