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

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 65692
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65692&action=edit
Proposed fix  which include base module symbols as spell check candidates

Here is a proposed patch and after applying the error message contains base
module entities.  The patch ensures that the base module is pushed first and
that the scope check code does not stop at a module boundary.  The patch also
allows symbols to be filtered on variables, types and constants.


$ gm2 badspelltype.mod 
badspelltype.mod:9:7: error: In program module ‘badspelltype’: unknown symbol
‘CARDINAl’, did you mean CARDINAL?
    9 |    b: CARDINAl ;
      |       ^~~~~~~~

Reply via email to