https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115003
Bug ID: 115003 Summary: exporting a symbol to outer scope with a name clash causes ICE Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: gaius at gcc dot gnu.org Target Milestone: --- As reported on the gm2 mailing list, the following program causes an ICE: MODULE Test; (* * Produces internal compiler error * Inside SymbolTable.GetScope, GetPsym() returns an unexpected token. *) TYPE CardType = CARDINAL; MODULE Inside; EXPORT CardType; END Inside; END Test.