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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <[email protected]>:

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

commit r16-6221-ge9b35866f564890255b864e960eda4b3c10372ef
Author: Gaius Mulley <[email protected]>
Date:   Wed Dec 17 17:02:09 2025 +0000

    PR modula2/23178: reduce error message clutter when reporting a non
procedure

    This bug fix corrects the token of an error message when reporting
    about a symbol which was not exported from a definition module.
    The reimplemented procedure CheckCanBeImported uses MetaError2
    with the spell hint format specifier if the symbol is unknown
    rather than the older WriteFormat2 procedure.

    gcc/m2/ChangeLog:

            PR modula2/23178
            * gm2-compiler/P3SymBuild.mod (CheckCanBeImported): Reimplement to
            use MetaError2 and provide spell hints if possible for unknown
symbols.

    gcc/testsuite/ChangeLog:

            PR modula2/23178
            * gm2/pim/fail/badprocedure.mod: New test.

    Signed-off-by: Gaius Mulley <[email protected]>

Reply via email to