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.
Just a note.  We're in regression fixes only (stage4) of our development
cycle.  I've put this (and other patches) into the queue of things to
review once stage1 re-opens.

jeff

Reply via email to