This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[fortran, patch] Fix handling of printf-style position specifiers of the form "%3$d" in error.c (PR29711)


:ADDPATCH fortran:

This is a simple fix of something which got broken between the initial
patch (attachment to PR29711) and the committed version.

Attached patch to PR:

+         while (ISDIGIT(*format))
+           format++;
+         format++;


Checked in patch

          while (ISDIGIT(*format))

          /* Skip over the dollar sign.  */
          format++;


The fix is simple.

2006-12-07  Tobias Burnus  <burnus@net-b.de

	PR fortran/29711 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29711>
        * error.c (error_print): Fix handling of printf-style position specifiers
        of the form "%3$d".



Index: gcc/fortran/error.c
===================================================================
--- gcc/fortran/error.c (Revision 119599)
+++ gcc/fortran/error.c (Arbeitskopie)
@@ -549,6 +549,7 @@
        {
          /* This is a position specifier.  See comment above.  */
          while (ISDIGIT(*format))
+           format++;

          /* Skip over the dollar sign.  */
          format++;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]