]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/29711 ([4.2 only] error_print does not support %N$X)
authorTobias Burnus <burnus@net-b.de>
Thu, 7 Dec 2006 09:15:41 +0000 (10:15 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 7 Dec 2006 09:15:41 +0000 (10:15 +0100)
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

gcc/fortran/ChangeLog
gcc/fortran/error.c

index 34ea1e5e17a5a22ea2d8cd3dc4c122e2d6cfe69a..95ce73f337581d9ed8dc05af9f7d4bad7c6c7d12 100644 (file)
@@ -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
index d92fd82004b1b702cc38494e9871dbb00545f946..fd8f0bb3bc06915de5920bf2243e2b18a219d183 100644 (file)
@@ -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++;