aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2006-12-07 10:15:41 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2006-12-07 10:15:41 +0100
commit70e7f689c3b55592bd6599848a148427859b2f34 (patch)
treeef069e4ad3bca1ce32ef5e3d93147392dc3621a2 /gcc/fortran
parentb68b36c4ef7c4b3ef1c7374df1a0a53d7c6e458f (diff)
downloadgcc-70e7f689c3b55592bd6599848a148427859b2f34.zip
gcc-70e7f689c3b55592bd6599848a148427859b2f34.tar.gz
gcc-70e7f689c3b55592bd6599848a148427859b2f34.tar.bz2
re PR fortran/29711 ([4.2 only] error_print does not support %N$X)
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" From-SVN: r119609
Diffstat (limited to 'gcc/fortran')
-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++;