[PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-13 Thread Michel Morin via Gcc-patches
Hi, PR77565 reports that, with the code `typdef int Int;`, GCC emits "did you mean 'typeof'?" instead of "did you mean 'typedef'?". This happens because the typo corrector determines that `typeof` is a candidate for suggestion (through `cp_keyword_starts_decl_specifier_p`), but `typedef` is not.

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-14 Thread Michel Morin via Gcc-patches
On Tue, Sep 14, 2021 at 7:14 AM David Malcolm wrote: > > On Tue, 2021-09-14 at 03:35 +0900, Michel Morin via Gcc-patches wrote: > > Hi, > > > > PR77565 reports that, with the code `typdef int Int;`, GCC emits > > "did you mean 'typeof'?" instead

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-16 Thread Michel Morin via Gcc-patches
On Thu, Sep 16, 2021 at 5:44 AM Jason Merrill wrote: > > On 9/14/21 04:29, Michel Morin via Gcc-patches wrote: > > On Tue, Sep 14, 2021 at 7:14 AM David Malcolm wrote: > >> > >> On Tue, 2021-09-14 at 03:35 +0900, Michel Morin via Gcc-patches wrote: > >>

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-17 Thread Michel Morin via Gcc-patches
On Fri, Sep 17, 2021 at 3:23 AM Jason Merrill wrote: > > On 9/16/21 11:50, Michel Morin wrote: > > On Thu, Sep 16, 2021 at 5:44 AM Jason Merrill wrote: > >> > >> On 9/14/21 04:29, Michel Morin via Gcc-patches wrote: > >>> On Tue, Sep 14, 2021 at 7:14 AM

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-21 Thread Michel Morin via Gcc-patches
ill wrote: > >>>> > >>>> On 9/14/21 04:29, Michel Morin via Gcc-patches wrote: > >>>>> On Tue, Sep 14, 2021 at 7:14 AM David Malcolm > >>>>> wrote: > >>>>>> > >>>>>> On Tue, 2021-09-14

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-22 Thread Michel Morin via Gcc-patches
ill wrote: > >>>> > >>>> On 9/16/21 11:50, Michel Morin wrote: > >>>>> On Thu, Sep 16, 2021 at 5:44 AM Jason Merrill wrote: > >>>>>> > >>>>>> On 9/14/21 04:29, Michel Morin via Gcc-patches wrote: > >>>

Re: [PATCH] c++: fix wrong fixit hints for misspelled typedef [PR77565]

2021-09-23 Thread Michel Morin via Gcc-patches
t; On 9/16/21 11:50, Michel Morin wrote: > > >>>>> On Thu, Sep 16, 2021 at 5:44 AM Jason Merrill > wrote: > > >>>>>> > > >>>>>> On 9/14/21 04:29, Michel Morin via Gcc-patches wrote: > > >>&g