[PATCH, c]: Fix PR52290, [4.4/4.5/4.6/4.7 Regression] internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:7712

Joseph S. Myers joseph@codesourcery.com
Thu Feb 23 16:42:00 GMT 2012


On Thu, 23 Feb 2012, Uros Bizjak wrote:

> 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
> 
> 	* c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
> 
> testsuite/ChangeLog:
> 
> 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
> 
> 	* gcc.dg/noncompile/pr52290.c: New test.
> 
> Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu.
> 
> OK for mainline and release branches?

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list