https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127554
--- Comment #1 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:56de4652dbfc3a79ee4946f0274aba115bd83ccb commit r17-4567-g56de4652dbfc3a79ee4946f0274aba115bd83ccb Author: Gaius Mulley <[email protected]> Date: Tue Sep 22 16:13:42 2026 +0100 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. Signed-off-by: Gaius Mulley <[email protected]>
