On Tue, 7 Jun 2016, Marek Polacek wrote:

> cc1 crashed on the following invalid code, because it tripped this assert.
> The reason why b->nested was false for the FUNCTION_DECL 'x' was that when
> doing pushdecl, we found an incompatible duplicate, so pushdecl just bound
> 'x' to FUNCTION_DECL 'x', replacing the old binding, without the TREE_PUBLIC
> test that sets 'nested'.
> 
> At first I thought about removing the assert but in the end I decided to add
> || seen_error -- for invalid code we might do the same as for ERROR_MARK.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to