This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [fortran, patch] Fix display of locus when source contains wide characters


On Sat, Mar 3, 2012 at 4:08 PM, FX <fxcoudert@gmail.com> wrote:
> The attached patch fixes PR 36160 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36160). It should correctly account for wide characters when display error loci. I'm not sure if we can check that in the testsuite harness, but you can manually see it at work on the attached test.f90.
>
> Bootstrapped and regtested on x86_64-apple-darwin11, OK for trunk?
> FX
>

Looks OK to me except for:

> -  for (; i > 0; i--)
> +  for (; i > 0;)

Might as well just make that a while loop.

Ciao!
Steven


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