Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Thomas Koenig Newsgroups: comp.compilers Subject: Re: Spell checking identifiers Date: Wed, 24 Jun 2020 20:08:03 -0000 (UTC) Organization: news.netcologne.de Lines: 18 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <20-06-015@comp.compilers> References: <20-06-010@comp.compilers> <20-06-014@comp.compilers> Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="8115"; mail-complaints-to="abuse@iecc.com" Keywords: lex, errors Posted-Date: 24 Jun 2020 17:25:13 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:2536 Kaz Kylheku <937-053-0959@kylheku.com> schrieb: > On 2020-06-23, Johann 'Myrkraverk' Oskarsson wrote: >> 5 | return j; // the variable, not the type. >> | ^ help: a local variable with a similar name exists: `i` > I don't find these kinds of childish diagnostic messages useful at all. > > They have started to appear in GCC also. > The good old "undeclared identifier `j`" requires no update, thanks. At least gcc doesn't do the suggestion in that particular case: foo.c: In function 'foo': foo.c:8:7: error: 'j' undeclared (first use in this function) 8 | x[j] = a[i] > b[i]; | ^ foo.c:8:7: note: each undeclared identifier is reported only once for each function it appears in