https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127554
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Gaius Mulley <[email protected]>: https://gcc.gnu.org/g:7584ae64d22bdd32aeb91d68445065bec0c809ff commit r16-9953-g7584ae64d22bdd32aeb91d68445065bec0c809ff Author: Gaius Mulley <[email protected]> Date: Fri Nov 13 09:08:38 2026 +0000 PR modula2/127554: Spell checking hint opportunity missed when building a contant aggregate This patch introduces spell checking to the PCBuild pass (aggregate constant construction pass). It also adds the type name spell checking. It also adds some missing production statements when the FORWARD keyword is encountered during PCBuild. gcc/m2/ChangeLog: PR modula2/127554 * gm2-compiler/M2MetaError.mod (SpellHint): Allow error symbols to be spell checked. * gm2-compiler/M2Quads.mod (BuildConstructor): Generate a spelling hint error message if the name is set and an error is seen. (PopTntok): New procedure. * gm2-compiler/PCBuild.bnf (CreateQualident): New procedure. (PushQualident): Reimplement. * gm2-compiler/PCSymBuild.mod (PCStartBuildDefModule): Push module to spelling stack. (PCStartBuildImpModule): Ditto. (PCStartBuildInnerModule): Ditto. (PCEndBuildDefModule): Pop top of spell stack. (PCEndBuildImpModule): Ditto. (PCEndBuildProgModule): Ditto. (PCEndBuildInnerModule): Ditto. (PCEndBuildProcedure): Ditto. (PCBuildProcedureHeading): Ditto. (PCEndBuildForward): Reimplement. gcc/testsuite/ChangeLog: PR modula2/127554 * gm2.dg/spell/iso/fail/constaggregate.mod: New test. (cherry picked from commit 56de4652dbfc3a79ee4946f0274aba115bd83ccb) Signed-off-by: Gaius Mulley <[email protected]>
