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]

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


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


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