[Patch, Fortran] PR 92793 - fix column used for error diagnostic
Tobias Burnus
tobias@codesourcery.com
Wed Dec 4 13:38:00 GMT 2019
As reported internally by Frederik, gfortran currently passes
LOCATION_COLUMN == 0 to the middle end. The reason for that is how
parsing works â gfortran reads the input line by line.
For internal error diagnostic (fortran/error.c), the column location was
corrected â but not for locations passed to the middle end. Hence, the
diagnostic there wasn't optimal.
Fixed by introducing a new function; now one only needs to make sure
that no new code will re-introduce "lb->location" :-)
Build and regtested on x86-64-gnu-linux.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfc_fix_col.diff
Type: text/x-patch
Size: 28549 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191204/68a8bedc/attachment.bin>
More information about the Fortran
mailing list