On 03/13/2018 03:56 PM, dave.pa...@oracle.com wrote:
> This patch fixes ICE when statement expression used in old-style
> function declaration parameter list. See
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30552
> 
> In c_parser_postfix_expression (), after seeing a left paren followed by
> a left curly brace, in addition to checking for existing statement list,
> also check to see if we're in the parameter scope an old-style function
> declaration. In either case, generate a "braced-group within expression
> allowed only inside a function" error.
> 
> Patch successfully bootstrapped and tested on x86_64-linux.
I moved the declaration from c-common.h into c-parser.h which seems to
be a better location and fixed a couple of whitespace nits.

Installed on the trunk.

Thanks,
Jeff

Reply via email to