https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125512
Bug ID: 125512
Summary: Candidate for spell checking missed when using
qualified ident
Product: gcc
Version: 16.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: ---
It appears that if an indent is qualified and misspelt then it doesn't offer an
alternative. For example:
../../client/Client.mod:155:11: error: In procedure ‘clear’: colors is not a
record variable
155 | colors.Clear ;
| ^~~~~
the imported module was color. A minimal version is given below:
MODULE example ;
IMPORT color ;
PROCEDURE Init ;
BEGIN
colors.Clear
END Init ;
BEGIN
Init
END example.
and the color definition module:
DEFINITION MODULE color ;
PROCEDURE Clear ;
END color.
$ gm2 -c example.mod
example.mod:7:11: error: In procedure ‘Init’: colors is not a record variable
7 | colors.Clear
| ^~~~~