Re: [PATCH 02/02] C FE: add fix-it hint for . vs ->

2015-11-12 Thread Joseph Myers
On Thu, 12 Nov 2015, David Malcolm wrote: > On Tue, 2015-11-10 at 17:55 +, Joseph Myers wrote: > > On Tue, 10 Nov 2015, David Malcolm wrote: > > > > > This is the most trivial example of a real fix-it example I could think > > > of: if the user writes > > > ptr.field > > > rather than

Re: [PATCH 02/02] C FE: add fix-it hint for . vs ->

2015-11-12 Thread David Malcolm
On Tue, 2015-11-10 at 17:55 +, Joseph Myers wrote: > On Tue, 10 Nov 2015, David Malcolm wrote: > > > This is the most trivial example of a real fix-it example I could think > > of: if the user writes > > ptr.field > > rather than ptr->field. > > > > gcc/c/ChangeLog: > > * c-typeck.c

[PATCH 02/02] C FE: add fix-it hint for . vs ->

2015-11-10 Thread David Malcolm
This is the most trivial example of a real fix-it example I could think of: if the user writes ptr.field rather than ptr->field. gcc/c/ChangeLog: * c-typeck.c (build_component_ref): Special-case POINTER_TYPE when generating a "not a structure of union" error message, and

Re: [PATCH 02/02] C FE: add fix-it hint for . vs ->

2015-11-10 Thread Joseph Myers
On Tue, 10 Nov 2015, David Malcolm wrote: > This is the most trivial example of a real fix-it example I could think > of: if the user writes > ptr.field > rather than ptr->field. > > gcc/c/ChangeLog: > * c-typeck.c (build_component_ref): Special-case POINTER_TYPE when >