This is the mail archive of the
mailing list for the GCC project.
Re: [C++ Patch] PR 48630 (PR 31423)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Jason Merrill <jason at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 19 Oct 2011 19:00:38 -0500
- Subject: Re: [C++ Patch] PR 48630 (PR 31423)
- References: <4E9F4265.email@example.com> <4E9F4FEA.firstname.lastname@example.org> <4E9F5F0C.email@example.com>
On Wed, Oct 19, 2011 at 6:36 PM, Paolo Carlini <firstname.lastname@example.org> wrote:
> On 10/20/2011 12:32 AM, Jason Merrill wrote:
>> Surely we should only make this change for function members.
> Thanks Gaby and Jason. So, what about the below?
I believe the effect of your new patch is that if will
always emit the suggest "did you forget "()"?" for member functions,
even in the case where the current suggestion is correct.
Using the type context would prevent that regression.
If it unfortunate that we put this diagnostic in the same category
as real 'incomplete type usage.' We should probably dissociate it.