[gfortran,patch] Handle "%3$d"-style format specifiers in error.c

Brooks Moses bmoses@stanford.edu
Wed Nov 22 06:40:00 GMT 2006


On Tue, Nov 21, 2006 at 08:42:32PM -0800, I wrote:
>        case TYPE_LOCUS:
>          loc = va_arg (argp, locus *);   
>          /* Fall through */
>        case TYPE_CURRENTLOC:
>          if (percent[pos].type == TYPE_CURRENTLOC)
>            loc = &gfc_current_locus;
>          if (have_l1)
>            l2 = percent[pos].u.locval;
>          else
>            {
>              l1 = percent[pos].u.locval;
>              have_l1 = 1;
>            }
>          break;

Obviously, that should have been setting l2 = loc and l1 = loc, not
setting them to percent[pos].u.locval.

Apologies,
- Brooks



More information about the Gcc-patches mailing list