https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120253

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Gaius Mulley
<ga...@gcc.gnu.org>:

https://gcc.gnu.org/g:e6bb28ea300a1e2c1e9852a7208d987d93135705

commit r15-9959-ge6bb28ea300a1e2c1e9852a7208d987d93135705
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Fri Jul 11 20:36:54 2025 +0100

    PR modula2/120253: Error message column numbers should start at 1 not 0

    This patch ensures that column numbers start at 1 rather than 0.

    gcc/m2/ChangeLog:

            PR modula2/120253
            * m2.flex (FIRST_COLUMN): New define.
            (updatepos): Remove commented code.
            (consumeLine): Assign column to FIRST_COLUMN.
            (initLine): Ditto.
            (m2flex_GetColumnNo): Return FIRST_COLUMN if currentLine is NULL.
            (m2flex_GetLineNo): Rewrite for positive logic.
            (m2flex_GetLocation): Ditto.

    (cherry picked from commit 9a485b83e177cb742be17faf20ac5cc7db14fee3)

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>

Reply via email to