This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 53003
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Apr 2012 17:37:45 +0200
- Subject: Re: [C++ Patch] PR 53003
- References: <4F8CAE5B.40708@oracle.com> <4F8D7660.5080002@redhat.com>
On 04/17/2012 03:55 PM, Jason Merrill wrote:
I have various thoughts:
It's odd that we still treat 'return' as starting a function body long
after we removed that extension.
Maybe we shouldn't look for a function body if we already have an
initializer and aren't dealing with a function declarator.
I guess we should set initializer_token_start for {} initializers as
well.
But your patch is certainly the smallest change, and OK.
Thanks. Thus let's say I apply the very safe patchlet to mainline and
branch and then, when time allows, I'll try and see if I clean up a bit
mainline in this area.
Thanks,
Paolo.