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

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 58143
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58143&action=edit
Proposed fix

The scope was an unknown symbol which was not in the case list within
SymbolTable.GetScope.
This patch adds a missing case clause allowing the compiler to recover.

$ gm2 Test.mod 
Test.mod:11:9: error: symbol ‘CardType’ is already declared in this scope, use
a different name or remove the declaration
   11 |  EXPORT CardType;
      |         ^~~~~~~~
Test.mod:7:17: error: symbol ‘CardType’ also declared in this module
    7 | TYPE CardType = CARDINAL;
      |                 ^~~~~~~~

Reply via email to