https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114380
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 57725 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57725&action=edit Proposed fix PR modula2/114380 Incorrect type specified in an error message This patch corrects an error message relating to a variable of a SET type. The bugfix is not to skip over set types (in GetLowestType). gcc/m2/ChangeLog: * gm2-compiler/SymbolTable.mod (GetLowestType): Do not skip over a set type, but return sym. gcc/testsuite/ChangeLog: * gm2/pim/fail/badset7.mod: New test.