On 14 October 2019 10:34:37 CEST, Tobias Burnus <tob...@codesourcery.com> wrote: >In patch https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00092.html , I >increased the error column location by one to point to the actual >error. > >That works fine, except when the character is one before the end of the > >line (= '\0') – as the PR 92072 shows. > >This patch checks for this and only increases the location by one if >that's not the case. Cf. scanner.c's next_char(). > >Comitted as Rev. 276953 (+ 276955).
--- a/gcc/fortran/error.c +++ b/gcc/fortran/error.c @@ -1,3 +1,4 @@ +#pragma GCC optimize("O0") /* Handle errors. Debugging leftover. TIA,